[
https://issues.apache.org/jira/browse/LANG-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Henri Yandell updated LANG-779:
-------------------------------
Fix Version/s: Patch Needed
> 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
> Fix For: Patch Needed
>
>
> 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 was sent by Atlassian JIRA
(v6.1#6144)