Author: pbenedict
Date: Wed Nov 18 05:58:06 2009
New Revision: 881672

URL: http://svn.apache.org/viewvc?rev=881672&view=rev
Log:
LANG-555: Add IS_OS_WINDOWS_7 constant

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=881672&r1=881671&r2=881672&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:58:06 2009
@@ -1091,6 +1091,16 @@
      */
     public static final boolean IS_OS_WINDOWS_VISTA = 
getOSMatches(OS_NAME_WINDOWS_PREFIX, "6.0"); 
 
+    /**
+     * <p>Is <code>true</code> if this is Windows 7.</p>
+     *
+     * <p>The field will return <code>false</code> if <code>OS_NAME</code> is
+     * <code>null</code>.</p>
+     *
+     * @since 3.0
+     */
+    public static final boolean IS_OS_WINDOWS_7 = 
getOSMatches(OS_NAME_WINDOWS_PREFIX, "6.1"); 
+
     //-----------------------------------------------------------------------  
  
     /**
      * <p>SystemUtils instances should NOT be constructed in standard


Reply via email to