From 8f9267714196a04fcc90c8549b4f8913776904b4 Mon Sep 17 00:00:00 2001 From: Adrian-Devries Date: Mon, 13 Jan 2025 23:45:03 +0100 Subject: [PATCH] Fix how to get line separator Replace ".getProperty("line.separator")" by ".lineSeparator()". --- .../src/test/java/org/mustangproject/commandline/CliIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mustang-CLI/src/test/java/org/mustangproject/commandline/CliIT.java b/Mustang-CLI/src/test/java/org/mustangproject/commandline/CliIT.java index a6cf0bd9f..9ffd2f45a 100644 --- a/Mustang-CLI/src/test/java/org/mustangproject/commandline/CliIT.java +++ b/Mustang-CLI/src/test/java/org/mustangproject/commandline/CliIT.java @@ -61,7 +61,7 @@ private String getOutput(Process process) throws IOException { String line; while ((line = reader.readLine()) != null) { builder.append(line); - builder.append(System.getProperty("line.separator")); + builder.append(System.lineSeparator()); } return builder.toString(); }