commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <>
Subject [jira] [Commented] (LANG-833) ToStringBuilder should use StringBuilder
Date Thu, 27 Sep 2012 11:10:07 GMT


Sebb commented on LANG-833:

bq. No cause for it. [i.e. StringBuffer]

StringBuffer may still be needed for snchronisation purposes.

Also if used in APIs, it may not be possible to change to StringBuilder without breaking compatibility.

But if it is possible to replace Buffer with Builder it would be sensible to do so.
> ToStringBuilder should use StringBuilder
> ----------------------------------------
>                 Key: LANG-833
>                 URL:
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.1
>            Reporter: Shevek
> Rewriting as lang3 but still using StringBuffer (synchronized) looks like a missed opportunity.
Please use StringBuilder.
> Suggest audit for uses of StringBuffer in lang3 overall. No cause for it.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message