commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1579864 - in /commons/proper/lang/trunk/src: changes/changes.xml main/java/org/apache/commons/lang3/SystemUtils.java
Date Fri, 21 Mar 2014 02:01:35 GMT
Author: ggregory
Date: Fri Mar 21 02:01:34 2014
New Revision: 1579864

URL: http://svn.apache.org/r1579864
Log:
<action issue="LANG-989" type="add" dev="ggregory">Add org.apache.commons.lang3.SystemUtils.IS_JAVA_1_8</action>

Modified:
    commons/proper/lang/trunk/src/changes/changes.xml
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SystemUtils.java

Modified: commons/proper/lang/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/changes/changes.xml?rev=1579864&r1=1579863&r2=1579864&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/changes/changes.xml [utf-8] (original)
+++ commons/proper/lang/trunk/src/changes/changes.xml [utf-8] Fri Mar 21 02:01:34 2014
@@ -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">

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SystemUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SystemUtils.java?rev=1579864&r1=1579863&r2=1579864&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SystemUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SystemUtils.java Fri
Mar 21 02:01:34 2014
@@ -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



Mime
View raw message