You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2013/06/05 19:12:20 UTC

[jira] [Resolved] (SLING-2908) Replace StringBuffer with StringBuilder

     [ https://issues.apache.org/jira/browse/SLING-2908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler resolved SLING-2908.
-------------------------------------

    Resolution: Fixed

Replaced in discovery impl in revision 1489965
                
> Replace StringBuffer with StringBuilder
> ---------------------------------------
>
>                 Key: SLING-2908
>                 URL: https://issues.apache.org/jira/browse/SLING-2908
>             Project: Sling
>          Issue Type: Improvement
>          Components: Commons, Engine, Extensions, Scripting
>    Affects Versions: Scripting Core 2.0.24, Engine 2.2.8, Commons OSGi 2.2.0
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>            Priority: Minor
>             Fix For: Scripting Core 2.0.26, Engine 2.2.10, Commons OSGi 2.2.2, Discovery Impl 1.0.0
>
>
> The StringBuilder is faster compared to the StringBuffer and is the prefered way of string concatenation. (StringBuffer is thread safe and therefore uses syncing)
> While this is not super important it is an easy fix as usually the classes can be used as replacements and therefore a low hanging fruit

--
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: http://www.atlassian.com/software/jira