[LANG-817] Add org.apache.commons.lang3.SystemUtils.IS_OS_WINDOWS_8.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1380679 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2012-09-04 15:10:52 +00:00
parent 8c478f2f9b
commit e2c6ef476d
2 changed files with 13 additions and 0 deletions

View File

@ -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>

View File

@ -1223,6 +1223,18 @@ public class SystemUtils {
*/
public static final boolean IS_OS_WINDOWS_7 = getOSMatches(OS_NAME_WINDOWS_PREFIX, "6.1");
/**
* <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}.