[
https://issues.apache.org/jira/browse/ARTEMIS-5294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Bertram updated ARTEMIS-5294:
------------------------------------
Description: 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}}).
> 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