DATACMNS-1376 - Polishing.
Moved JVM version lookup into Version. Original pull request: #307.
This commit is contained in:
@@ -87,6 +87,15 @@ public class Version implements Comparable<Version> {
|
||||
return new Version(intParts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Java version of the running JVM.
|
||||
*
|
||||
* @return will never be {@literal null}.
|
||||
*/
|
||||
public static Version javaVersion() {
|
||||
return parse(System.getProperty("java.version"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the current {@link Version} is greater (newer) than the given one.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user