Skip to content

Commit 2dad314

Browse files
committed
Improve line splitting on Windows
1 parent c3db320 commit 2dad314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

log4j-parent/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@
10451045
throw new RuntimeException('Failed to decompile the module descriptor in ' + jarFile + ':\n' + err)
10461046
}
10471047
log.debug('Module descriptor: ' + out)
1048-
for (String line : out.toString().split(System.lineSeparator(), -1)) {
1048+
for (String line : out.toString().split('\r?\n', -1)) {
10491049
if (line.contains('static') && line.contains('transitive')) {
10501050
throw new RuntimeException("The 'static' and 'transitive' modifiers should not be use together: " + line)
10511051
}

0 commit comments

Comments
 (0)