valepakh commented on code in PR #1991:
URL: https://github.com/apache/ignite-3/pull/1991#discussion_r1184744095


##########
modules/cli/src/main/java/org/apache/ignite/internal/cli/commands/cluster/init/ClusterInitOptions.java:
##########
@@ -119,8 +117,8 @@ public String clusterConfiguration() {
         } else if (clusterConfigOptions.config != null) {
             return clusterConfigOptions.config;
         } else if (clusterConfigOptions.file != null) {
-            try (Stream<String> lines = 
Files.lines(clusterConfigOptions.file.toPath())) {
-                return 
lines.collect(Collectors.joining(System.lineSeparator()));
+            try {
+                return new 
String(Files.readAllBytes(clusterConfigOptions.file.toPath()));

Review Comment:
   Why not just use Files.readString?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to