LANG-555: Add IS_OS_WINDOWS_7 constant

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881672 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Paul C. Benedict Jr 2009-11-18 05:58:06 +00:00
parent 0698ab208a
commit 87c4b35e52
1 changed files with 10 additions and 0 deletions

View File

@ -1091,6 +1091,16 @@ public class SystemUtils {
*/
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