[
https://issues.apache.org/jira/browse/ARTEMIS-5293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17926433#comment-17926433
]
ASF subversion and git services commented on ARTEMIS-5293:
----------------------------------------------------------
Commit e7f48fe359e4e051463ec4461a35e8f269854d74 in activemq-artemis's branch
refs/heads/main from Justin Bertram
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=e7f48fe359 ]
ARTEMIS-5293 use Files.readString() & Files.writeString() where possible
> Use Files.readString() & Files.writeString() where possible
> -----------------------------------------------------------
>
> Key: ARTEMIS-5293
> URL: https://issues.apache.org/jira/browse/ARTEMIS-5293
> Project: ActiveMQ Artemis
> Issue Type: Sub-task
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
>
> Java 11 introduced the
> {{[Files.readString|https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/Files.html#readString(java.nio.file.Path)]}}
> and
> {{[Files.writeString|https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/Files.html#writeString(java.nio.file.Path,java.lang.CharSequence,java.nio.file.OpenOption...)]}}
> methods. We should use them wherever possible as they are more concise and
> readable than the alternatives.
--
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