diff --git a/src/java/org/apache/commons/lang/SystemUtils.java b/src/java/org/apache/commons/lang/SystemUtils.java index 2c4210562..9f252d52e 100644 --- a/src/java/org/apache/commons/lang/SystemUtils.java +++ b/src/java/org/apache/commons/lang/SystemUtils.java @@ -1091,6 +1091,16 @@ public class SystemUtils { */ public static final boolean IS_OS_WINDOWS_VISTA = getOSMatches(OS_NAME_WINDOWS_PREFIX, "6.0"); + /** + *

Is true if this is Windows 7.

+ * + *

The field will return false if OS_NAME is + * null.

+ * + * @since 3.0 + */ + public static final boolean IS_OS_WINDOWS_7 = getOSMatches(OS_NAME_WINDOWS_PREFIX, "6.1"); + //----------------------------------------------------------------------- /** *

SystemUtils instances should NOT be constructed in standard