[
https://issues.apache.org/jira/browse/AMQ-9720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17956146#comment-17956146
]
ASF subversion and git services commented on AMQ-9720:
------------------------------------------------------
Commit aa29d0f2cb8d879693b53c39b85a4af57bd38cf2 in activemq's branch
refs/heads/main from grigoni
[ https://gitbox.apache.org/repos/asf?p=activemq.git;h=aa29d0f2cb ]
AMQ-9720 - Code cleanup: use StringBuilder instead of StringBuffer (#1446)
This avoids unnecessary sync by StringBuffer, also use concat instead of
StringBuffer
when not in a loop and let the compiler optimize
> 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: 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