<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:
parent
3a394317b0
commit
024a22b015
|
@ -22,6 +22,7 @@
|
|||
<body>
|
||||
|
||||
<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 version="3.3.1" date="2014-03-18" description="Bugfix release for 3.3">
|
||||
|
|
|
@ -926,6 +926,18 @@ public class SystemUtils {
|
|||
*/
|
||||
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
|
||||
// -----------------------------------------------------------------------
|
||||
// These MUST be declared after those above as they depend on the
|
||||
|
|
Loading…
Reference in New Issue