<action issue="LANG-989" type="add" dev="ggregory">Add org.apache.commons.lang3.SystemUtils.IS_JAVA_1_8</action>

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1579864 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2014-03-21 02:01:34 +00:00
parent 3a394317b0
commit 024a22b015
2 changed files with 13 additions and 0 deletions

View File

@ -22,6 +22,7 @@
<body> <body>
<release version="3.4" date="tba" description="tba"> <release version="3.4" date="tba" description="tba">
<action issue="LANG-989" type="add" dev="ggregory">Add org.apache.commons.lang3.SystemUtils.IS_JAVA_1_8</action>
</release> </release>
<release version="3.3.1" date="2014-03-18" description="Bugfix release for 3.3"> <release version="3.3.1" date="2014-03-18" description="Bugfix release for 3.3">

View File

@ -926,6 +926,18 @@ public class SystemUtils {
*/ */
public static final boolean IS_JAVA_1_7 = getJavaVersionMatches("1.7"); public static final boolean IS_JAVA_1_7 = getJavaVersionMatches("1.7");
/**
* <p>
* Is {@code true} if this is Java version 1.8 (also 1.8.x versions).
* </p>
* <p>
* The field will return {@code false} if {@link #JAVA_VERSION} is {@code null}.
* </p>
*
* @since 3.4
*/
public static final boolean IS_JAVA_1_8 = getJavaVersionMatches("1.8");
// Operating system checks // Operating system checks
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
// These MUST be declared after those above as they depend on the // These MUST be declared after those above as they depend on the