| |
|
| java.lang.Object org.compass.core.util.JdkVersion
JdkVersion | public class JdkVersion (Code) | | Helper class used to find the current Java/JDK version.
Usually we want to find if we're in a 1.4 or higher JVM.
(Spring does not support 1.2 JVMs.)
author: kimchy |
Method Summary | |
public static String | getJavaVersion() Return the full Java version string, as returned by
System.getProperty("java.version") . | public static int | getMajorJavaVersion() Get the major version code. |
JAVA_13 | final public static int JAVA_13(Code) | | |
JAVA_14 | final public static int JAVA_14(Code) | | |
JAVA_15 | final public static int JAVA_15(Code) | | |
JAVA_16 | final public static int JAVA_16(Code) | | |
JAVA_17 | final public static int JAVA_17(Code) | | |
getJavaVersion | public static String getJavaVersion()(Code) | | Return the full Java version string, as returned by
System.getProperty("java.version") .
|
getMajorJavaVersion | public static int getMajorJavaVersion()(Code) | | Get the major version code. This means we can do things like
if (getMajorJavaVersion() < JAVA_14) .
a code comparable to the JAVA_XX codes in this class See Also: JdkVersion.JAVA_13 See Also: JdkVersion.JAVA_14 See Also: JdkVersion.JAVA_15 |
|
|
|