Package org.codehaus.mojo.jaxb2.shared
Class JavaVersion
- java.lang.Object
- 
- org.codehaus.mojo.jaxb2.shared.JavaVersion
 
- 
 public final class JavaVersion extends Object Helper to extract the runtime Java version from the System.properties.- Since:
- 2.4
- Author:
- Lennart Jörelid
 
- 
- 
Constructor SummaryConstructors Constructor Description JavaVersion()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetJavaMajorVersion()Retrieves the major java runtime version as an integer.static booleanisJdk8OrLower()Checks if the runtime java version is JDK 8 or lower.
 
- 
- 
- 
Method Detail- 
getJavaMajorVersionpublic static int getJavaMajorVersion() Retrieves the major java runtime version as an integer.- Returns:
- the major java runtime version as an integer.
 
 - 
isJdk8OrLowerpublic static boolean isJdk8OrLower() Checks if the runtime java version is JDK 8 or lower.- Returns:
- true if the runtime java version is JDK 8 or lower.
 
 
- 
 
-