LANG-1427: Add SystemUtils.isJavaVersionAtMost(JavaVersion)

Fix checkstyle violations.
This commit is contained in:
pascalschumacher 2018-12-20 14:26:28 +01:00
parent e21cb463c0
commit a48d045709
1 changed files with 2 additions and 2 deletions

View File

@ -482,7 +482,7 @@ public class SystemUtilsTest {
assertFalse(SystemUtils.isJavaVersionAtMost(JAVA_1_5));
assertFalse(SystemUtils.isJavaVersionAtMost(JAVA_1_6));
assertFalse(SystemUtils.isJavaVersionAtMost(JAVA_1_7));
assertTrue(SystemUtils.isJavaVersionAtMost(JAVA_1_8));
assertTrue(SystemUtils.isJavaVersionAtMost(JAVA_1_8));
assertTrue(SystemUtils.isJavaVersionAtMost(JAVA_9));
assertTrue(SystemUtils.isJavaVersionAtMost(JAVA_10));
assertTrue(SystemUtils.isJavaVersionAtMost(JAVA_11));
@ -495,7 +495,7 @@ public class SystemUtilsTest {
assertFalse(SystemUtils.isJavaVersionAtMost(JAVA_1_6));
assertFalse(SystemUtils.isJavaVersionAtMost(JAVA_1_7));
assertFalse(SystemUtils.isJavaVersionAtMost(JAVA_1_8));
assertTrue(SystemUtils.isJavaVersionAtMost(JAVA_9));
assertTrue(SystemUtils.isJavaVersionAtMost(JAVA_9));
assertTrue(SystemUtils.isJavaVersionAtMost(JAVA_10));
assertTrue(SystemUtils.isJavaVersionAtMost(JAVA_11));
} else if (SystemUtils.IS_JAVA_10) {