You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by " Gianandrea Rigoni (Jira)" <ji...@apache.org> on 2025/06/02 20:54:00 UTC

[jira] [Updated] (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 ]

Gianandrea Rigoni updated AMQ-9720:
-----------------------------------
    Description: 
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)



  was:
Code cleanup: use StringBuilder instead of StringBuffer
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)




> 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
>            Priority: Major
>
> 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