[ 
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: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to