commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pbened...@apache.org
Subject svn commit: r881671 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/SystemUtils.java
Date Wed, 18 Nov 2009 05:52:01 GMT
Author: pbenedict
Date: Wed Nov 18 05:52:01 2009
New Revision: 881671

URL: http://svn.apache.org/viewvc?rev=881671&view=rev
Log:
LANG-554: Add 1.7 check

Modified:
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/SystemUtils.java

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/SystemUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/SystemUtils.java?rev=881671&r1=881670&r2=881671&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/SystemUtils.java (original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/SystemUtils.java Wed Nov 18
05:52:01 2009
@@ -885,6 +885,16 @@
      */
     public static final boolean IS_JAVA_1_6 = getJavaVersionMatches("1.6");
 
+    /**
+     * <p>Is <code>true</code> if this is Java version 1.7 (also 1.7.x
versions).</p>
+     *
+     * <p>The field will return <code>false</code> if {@link #JAVA_VERSION}
is
+     * <code>null</code>.</p>
+     * 
+     * @since 3.0
+     */
+    public static final boolean IS_JAVA_1_7 = getJavaVersionMatches("1.7");
+
     // Operating system checks
     //-----------------------------------------------------------------------
     // These MUST be declared after those above as they depend on the



Mime
View raw message