Skip to content

Commit 68e7cde

Browse files
ChrimleMarkEWaite
andauthored
Remove unused utility methods checking for Java 8 (#8152)
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
1 parent cb6bc5b commit 68e7cde

File tree

2 files changed

+0
-67
lines changed

2 files changed

+0
-67
lines changed

core/src/main/java/jenkins/util/java/JavaUtils.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,6 @@ private JavaUtils() {
4040
// Cannot construct
4141
}
4242

43-
/**
44-
* Check whether the current JVM is running with Java 8 or below
45-
* @return {@code true} if it is Java 8 or older version
46-
*/
47-
public static boolean isRunningWithJava8OrBelow() {
48-
String javaVersion = getCurrentRuntimeJavaVersion();
49-
return javaVersion.startsWith("1.");
50-
}
51-
52-
/**
53-
* Check whether the current JVM is running with Java 9 or above.
54-
* @return {@code true} if it is Java 9 or above
55-
*/
56-
public static boolean isRunningWithPostJava8() {
57-
String javaVersion = getCurrentRuntimeJavaVersion();
58-
return !javaVersion.startsWith("1.");
59-
}
60-
6143
/**
6244
* Returns the JVM's current version as a {@link VersionNumber} instance.
6345
*/

core/src/test/java/jenkins/util/java/JavaUtilsTest.java

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)