Skip to content

Commit 40396ad

Browse files
committed
handle unix line endings on cygwin
1 parent d594773 commit 40396ad

File tree

1 file changed

+1
-1
lines changed
  • compiler/src/jdk.graal.compiler.processor/src/jdk/graal/compiler/options/processor

1 file changed

+1
-1
lines changed

compiler/src/jdk.graal.compiler.processor/src/jdk/graal/compiler/options/processor/OptionProcessor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private void processElement(Element element, OptionsDeclarer optionsDeclarer) {
201201
}
202202
try (InputStream in = file.openInputStream()) {
203203
help = new String(in.readAllBytes(), StandardCharsets.UTF_8);
204-
helpLines = List.of(help.split(System.lineSeparator()));
204+
helpLines = List.of(help.split("\\r?\\n"));
205205
}
206206
} catch (IOException e) {
207207
String msg = String.format("Error reading %s containing the help text for option field: %s", path, e);

0 commit comments

Comments
 (0)