Fixing tests for jdk9+

This commit is contained in:
Klemek
2019-01-20 14:11:29 +01:00
parent 00d4fa47cd
commit 72b4f4d57f
2 changed files with 2 additions and 1 deletions
@@ -120,7 +120,7 @@ public class LoggerTest {
}
private static int getMajorJavaVersion() {
String[] javaVersionElements = System.getProperty("java.runtime.version").split("\\.|_|-b");
String[] javaVersionElements = System.getProperty("java.version").split("\\.");
return Integer.parseInt(javaVersionElements[1]);
}