[
https://issues.apache.org/jira/browse/ARTEMIS-5294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17926443#comment-17926443
]
ASF subversion and git services commented on ARTEMIS-5294:
----------------------------------------------------------
Commit 31cb265c89f92e548403fd7b9d1de9ad170b189c in activemq-artemis's branch
refs/heads/main from Justin Bertram
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=31cb265c89 ]
ARTEMIS-5294 more cases for String.repeat()
> Use String.repeat() where possible
> ----------------------------------
>
> Key: ARTEMIS-5294
> URL: https://issues.apache.org/jira/browse/ARTEMIS-5294
> Project: ActiveMQ Artemis
> Issue Type: Sub-task
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
>
> Java 11 introduced
> {{[String.repeat|https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html#repeat(int)]}}
> method. We should use it wherever possible as it is much more concise and
> readable than the alternatives (e.g. using {{append}} on {{StringBuffer}} or
> {{StringBuilder}}).
--
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