commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1380679 - in /commons/proper/lang/trunk/src: changes/changes.xml main/java/org/apache/commons/lang3/SystemUtils.java
Date Tue, 04 Sep 2012 15:10:53 GMT
Author: ggregory
Date: Tue Sep  4 15:10:52 2012
New Revision: 1380679

URL: http://svn.apache.org/viewvc?rev=1380679&view=rev
Log:
[LANG-817] Add org.apache.commons.lang3.SystemUtils.IS_OS_WINDOWS_8.

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=1380679&r1=1380678&r2=1380679&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/changes/changes.xml (original)
+++ commons/proper/lang/trunk/src/changes/changes.xml Tue Sep  4 15:10:52 2012
@@ -22,6 +22,7 @@
   <body>
 
   <release version="3.2" date="TBA" description="Next release">
+    <action issue="LANG-817" type="fix">Add org.apache.commons.lang3.SystemUtils.IS_OS_WINDOWS_8</action>
     <action issue="LANG-813" type="fix">StringUtils.equalsIgnoreCase doesn't check
string reference equality</action>
     <action issue="LANG-807" type="fix">RandomStringUtils throws confusing IAE when
end &lt;= start</action>
     <action issue="LANG-805" type="fix">RandomStringUtils.random(count, 0, 0, false,
false, universe, random) always throws java.lang.ArrayIndexOutOfBoundsException</action>

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=1380679&r1=1380678&r2=1380679&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 Tue
Sep  4 15:10:52 2012
@@ -1225,6 +1225,18 @@ public class SystemUtils {
 
     /**
      * <p>
+     * Is {@code true} if this is Windows 8.
+     * </p>
+     * <p>
+     * The field will return {@code false} if {@code OS_NAME} is {@code null}.
+     * </p>
+     *
+     * @since 3.2
+     */
+    public static final boolean IS_OS_WINDOWS_8 = getOSMatches(OS_NAME_WINDOWS_PREFIX, "6.2");
+
+    /**
+     * <p>
      * Gets the Java home directory as a {@code File}.
      * </p>
      *



Mime
View raw message