Package org.owasp.dependencycheck.utils
Class Utils
- java.lang.Object
-
- org.owasp.dependencycheck.utils.Utils
-
public final class Utils extends java.lang.Object
- Author:
- Jeremy Long
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getJavaUpdateVersion()
Returns the update version from the Java runtime.static int
getJavaVersion()
Returns the Java major version as a whole number.protected static int
parseUpdate(java.lang.String runtimeVersion)
Parses the update version from the runtime version.
-
-
-
Method Detail
-
getJavaVersion
public static int getJavaVersion()
Returns the Java major version as a whole number.- Returns:
- the Java major version as a whole number
-
getJavaUpdateVersion
public static int getJavaUpdateVersion()
Returns the update version from the Java runtime.- Returns:
- the update version
-
parseUpdate
protected static int parseUpdate(java.lang.String runtimeVersion)
Parses the update version from the runtime version.- Parameters:
runtimeVersion
- the runtime version- Returns:
- the update version
-
-