You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2012/09/04 17:10:53 UTC
svn commit: r1380679 - in /commons/proper/lang/trunk/src:
changes/changes.xml main/java/org/apache/commons/lang3/SystemUtils.java
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 <= 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>
*