[
https://issues.apache.org/jira/browse/LANG-779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14559252#comment-14559252
]
ASF GitHub Bot commented on LANG-779:
-------------------------------------
Github user dstewart closed the pull request at:
https://github.com/apache/commons-lang/pull/90
> 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.3.4#6332)