You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Christopher L. Shannon (Jira)" <ji...@apache.org> on 2025/06/04 16:18:00 UTC

[jira] [Resolved] (AMQ-9720) Code cleanup: use StringBuilder instead of StringBuffer

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

Christopher L. Shannon resolved AMQ-9720.
-----------------------------------------
    Resolution: Fixed

> Code cleanup: use StringBuilder instead of StringBuffer
> -------------------------------------------------------
>
>                 Key: AMQ-9720
>                 URL: https://issues.apache.org/jira/browse/AMQ-9720
>             Project: ActiveMQ Classic
>          Issue Type: Improvement
>            Reporter:  Gianandrea Rigoni
>            Assignee: Christopher L. Shannon
>            Priority: Minor
>             Fix For: 6.2.0
>
>
> Code cleanup: use StringBuilder instead of StringBuffer
> StringBuilder is not synchronized, which makes it faster than StringBuffer
> in some cases where there is no loop involved replace StringBuffer with a pure String concatenation (leaving java compiler doing the optimizations)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact