commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r904105 - /commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/SystemUtils.java
Date Thu, 28 Jan 2010 14:46:05 GMT
Author: niallp
Date: Thu Jan 28 14:46:05 2010
New Revision: 904105

URL: http://svn.apache.org/viewvc?rev=904105&view=rev
Log:
Port LANG-555 to 2.x branch - Add IS_OS_WINDOWS_7 constant

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=904105&r1=904104&r2=904105&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:46:05 2010
@@ -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



Mime
View raw message