diff --git a/src/java/org/apache/commons/lang/builder/ToStringBuilder.java b/src/java/org/apache/commons/lang/builder/ToStringBuilder.java index 6fdba46a3..2a7ba8c37 100644 --- a/src/java/org/apache/commons/lang/builder/ToStringBuilder.java +++ b/src/java/org/apache/commons/lang/builder/ToStringBuilder.java @@ -106,9 +106,10 @@ public class ToStringBuilder { * It is recommended to pass a ToStringStyle to the constructor instead * of using this global default.

* - *

This method is not intended for use from multiple threads. + *

This method can be used from multiple threads. * Internally, a volatile variable is used to provide the guarantee - * that the latest value set using {@link #setDefaultStyle} is the value returned.

+ * that the latest value set using {@link #setDefaultStyle} is the value returned. + * It is strongly recommended that the default style is only changed during application startup.

* *

One reason for changing the default could be to have a verbose style during * development and a compact style in production.