[ 
https://issues.apache.org/jira/browse/ARTEMIS-5294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17926434#comment-17926434
 ] 

ASF subversion and git services commented on ARTEMIS-5294:
----------------------------------------------------------

Commit 3d7970d717c84998d34698165515f7281acc4386 in activemq-artemis's branch 
refs/heads/main from Justin Bertram
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=3d7970d717 ]

ARTEMIS-5294 use String.repeat() where possible


> 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


Reply via email to