You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ni...@apache.org on 2010/01/28 15:43:07 UTC
svn commit: r904102 -
/commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/SystemUtils.java
Author: niallp
Date: Thu Jan 28 14:43:07 2010
New Revision: 904102
URL: http://svn.apache.org/viewvc?rev=904102&view=rev
Log:
Port LANG-554 to 2.x branch - Add JDK 1.7 check
Modified:
commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/SystemUtils.java
Modified: commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/SystemUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/SystemUtils.java?rev=904102&r1=904101&r2=904102&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/SystemUtils.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/SystemUtils.java Thu Jan 28 14:43:07 2010
@@ -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