Provide a StrBuilder-based or StringBuilder-based ToStringBuilder
-----------------------------------------------------------------
Key: LANG-779
URL: https://issues.apache.org/jira/browse/LANG-779
Project: Commons Lang
Issue Type: Improvement
Components: lang.builder.*
Affects Versions: 3.1
Reporter: Simon Dierl
Priority: Minor
At the moment, ToStringBuilder internally uses a StringBuffer to create the
output String. StringBuffer, as opposed to StringBuilder and StrBuilder, is
synchronized. Since ToStringBuilder will almost never leave the
toString()-method, the synchronization only adds overhead.
Since the ToStringBuilder API never suggests that ToStringBuilder is
thread-safe, either the current implementation could be changed to use
Str[ing]Builder or an alternative implementation could be provided.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira