Skip to content

Commit

Permalink
split lines on system-specific line separator
Browse files Browse the repository at this point in the history
  • Loading branch information
pkourouklidis committed Dec 18, 2024
1 parent a81f16a commit 2852dd0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void testFileParsing() throws Exception {

private void parseFile(File file) throws Exception {
String content = new String(Files.readAllBytes(file.toPath()));
String[] lines = content.split("\n");
String[] lines = content.split(System.lineSeparator());
List<String> errorMessages = new ArrayList<String>();
List<String> warningMessages = new ArrayList<String>();
for (String line: lines) {
Expand Down

0 comments on commit 2852dd0

Please sign in to comment.