diff --git a/src/main/java/org/apache/commons/lang3/SystemUtils.java b/src/main/java/org/apache/commons/lang3/SystemUtils.java index 74a90fca5..badde7fba 100644 --- a/src/main/java/org/apache/commons/lang3/SystemUtils.java +++ b/src/main/java/org/apache/commons/lang3/SystemUtils.java @@ -1003,7 +1003,7 @@ public class SystemUtils { * * @since 2.0 */ - public static final boolean IS_OS_AIX = getOSMatchesName("AIX"); + public static final boolean IS_OS_AIX = getOsMatchesName("AIX"); /** *

@@ -1015,7 +1015,7 @@ public class SystemUtils { * * @since 2.0 */ - public static final boolean IS_OS_HP_UX = getOSMatchesName("HP-UX"); + public static final boolean IS_OS_HP_UX = getOsMatchesName("HP-UX"); /** *

@@ -1027,7 +1027,7 @@ public class SystemUtils { * * @since 3.3 */ - public static final boolean IS_OS_400 = getOSMatchesName("OS/400"); + public static final boolean IS_OS_400 = getOsMatchesName("OS/400"); /** *

@@ -1039,7 +1039,7 @@ public class SystemUtils { * * @since 2.0 */ - public static final boolean IS_OS_IRIX = getOSMatchesName("Irix"); + public static final boolean IS_OS_IRIX = getOsMatchesName("Irix"); /** *

@@ -1051,7 +1051,7 @@ public class SystemUtils { * * @since 2.0 */ - public static final boolean IS_OS_LINUX = getOSMatchesName("Linux") || getOSMatchesName("LINUX"); + public static final boolean IS_OS_LINUX = getOsMatchesName("Linux") || getOsMatchesName("LINUX"); /** *

@@ -1063,7 +1063,7 @@ public class SystemUtils { * * @since 2.0 */ - public static final boolean IS_OS_MAC = getOSMatchesName("Mac"); + public static final boolean IS_OS_MAC = getOsMatchesName("Mac"); /** *

@@ -1075,7 +1075,7 @@ public class SystemUtils { * * @since 2.0 */ - public static final boolean IS_OS_MAC_OSX = getOSMatchesName("Mac OS X"); + public static final boolean IS_OS_MAC_OSX = getOsMatchesName("Mac OS X"); /** *

@@ -1087,7 +1087,7 @@ public class SystemUtils { * * @since 3.4 */ - public static final boolean IS_OS_MAC_OSX_CHEETAH = getOSMatches("Mac OS X", "10.0"); + public static final boolean IS_OS_MAC_OSX_CHEETAH = getOsMatches("Mac OS X", "10.0"); /** *

@@ -1099,7 +1099,7 @@ public class SystemUtils { * * @since 3.4 */ - public static final boolean IS_OS_MAC_OSX_PUMA = getOSMatches("Mac OS X", "10.1"); + public static final boolean IS_OS_MAC_OSX_PUMA = getOsMatches("Mac OS X", "10.1"); /** *

@@ -1111,7 +1111,7 @@ public class SystemUtils { * * @since 3.4 */ - public static final boolean IS_OS_MAC_OSX_JAGUAR = getOSMatches("Mac OS X", "10.2"); + public static final boolean IS_OS_MAC_OSX_JAGUAR = getOsMatches("Mac OS X", "10.2"); /** *

@@ -1123,7 +1123,7 @@ public class SystemUtils { * * @since 3.4 */ - public static final boolean IS_OS_MAC_OSX_PANTHER = getOSMatches("Mac OS X", "10.3"); + public static final boolean IS_OS_MAC_OSX_PANTHER = getOsMatches("Mac OS X", "10.3"); /** *

@@ -1135,7 +1135,7 @@ public class SystemUtils { * * @since 3.4 */ - public static final boolean IS_OS_MAC_OSX_TIGER = getOSMatches("Mac OS X", "10.4"); + public static final boolean IS_OS_MAC_OSX_TIGER = getOsMatches("Mac OS X", "10.4"); /** *

@@ -1147,7 +1147,7 @@ public class SystemUtils { * * @since 3.4 */ - public static final boolean IS_OS_MAC_OSX_LEOPARD = getOSMatches("Mac OS X", "10.5"); + public static final boolean IS_OS_MAC_OSX_LEOPARD = getOsMatches("Mac OS X", "10.5"); /** *

@@ -1159,7 +1159,7 @@ public class SystemUtils { * * @since 3.4 */ - public static final boolean IS_OS_MAC_OSX_SNOW_LEOPARD = getOSMatches("Mac OS X", "10.6"); + public static final boolean IS_OS_MAC_OSX_SNOW_LEOPARD = getOsMatches("Mac OS X", "10.6"); /** *

@@ -1171,7 +1171,7 @@ public class SystemUtils { * * @since 3.4 */ - public static final boolean IS_OS_MAC_OSX_LION = getOSMatches("Mac OS X", "10.7"); + public static final boolean IS_OS_MAC_OSX_LION = getOsMatches("Mac OS X", "10.7"); /** *

@@ -1183,7 +1183,7 @@ public class SystemUtils { * * @since 3.4 */ - public static final boolean IS_OS_MAC_OSX_MOUNTAIN_LION = getOSMatches("Mac OS X", "10.8"); + public static final boolean IS_OS_MAC_OSX_MOUNTAIN_LION = getOsMatches("Mac OS X", "10.8"); /** *

@@ -1195,7 +1195,7 @@ public class SystemUtils { * * @since 3.4 */ - public static final boolean IS_OS_MAC_OSX_MAVERICKS = getOSMatches("Mac OS X", "10.9"); + public static final boolean IS_OS_MAC_OSX_MAVERICKS = getOsMatches("Mac OS X", "10.9"); /** *

@@ -1207,7 +1207,7 @@ public class SystemUtils { * * @since 3.4 */ - public static final boolean IS_OS_MAC_OSX_YOSEMITE = getOSMatches("Mac OS X", "10.10"); + public static final boolean IS_OS_MAC_OSX_YOSEMITE = getOsMatches("Mac OS X", "10.10"); /** *

@@ -1219,7 +1219,7 @@ public class SystemUtils { * * @since 3.5 */ - public static final boolean IS_OS_MAC_OSX_EL_CAPITAN = getOSMatches("Mac OS X", "10.11"); + public static final boolean IS_OS_MAC_OSX_EL_CAPITAN = getOsMatches("Mac OS X", "10.11"); /** *

@@ -1231,7 +1231,7 @@ public class SystemUtils { * * @since 3.1 */ - public static final boolean IS_OS_FREE_BSD = getOSMatchesName("FreeBSD"); + public static final boolean IS_OS_FREE_BSD = getOsMatchesName("FreeBSD"); /** *

@@ -1243,7 +1243,7 @@ public class SystemUtils { * * @since 3.1 */ - public static final boolean IS_OS_OPEN_BSD = getOSMatchesName("OpenBSD"); + public static final boolean IS_OS_OPEN_BSD = getOsMatchesName("OpenBSD"); /** *

@@ -1255,7 +1255,7 @@ public class SystemUtils { * * @since 3.1 */ - public static final boolean IS_OS_NET_BSD = getOSMatchesName("NetBSD"); + public static final boolean IS_OS_NET_BSD = getOsMatchesName("NetBSD"); /** *

@@ -1267,7 +1267,7 @@ public class SystemUtils { * * @since 2.0 */ - public static final boolean IS_OS_OS2 = getOSMatchesName("OS/2"); + public static final boolean IS_OS_OS2 = getOsMatchesName("OS/2"); /** *

@@ -1279,7 +1279,7 @@ public class SystemUtils { * * @since 2.0 */ - public static final boolean IS_OS_SOLARIS = getOSMatchesName("Solaris"); + public static final boolean IS_OS_SOLARIS = getOsMatchesName("Solaris"); /** *

@@ -1291,7 +1291,7 @@ public class SystemUtils { * * @since 2.0 */ - public static final boolean IS_OS_SUN_OS = getOSMatchesName("SunOS"); + public static final boolean IS_OS_SUN_OS = getOsMatchesName("SunOS"); /** *

@@ -1316,7 +1316,7 @@ public class SystemUtils { * * @since 2.0 */ - public static final boolean IS_OS_WINDOWS = getOSMatchesName(OS_NAME_WINDOWS_PREFIX); + public static final boolean IS_OS_WINDOWS = getOsMatchesName(OS_NAME_WINDOWS_PREFIX); /** *

@@ -1328,7 +1328,7 @@ public class SystemUtils { * * @since 2.0 */ - public static final boolean IS_OS_WINDOWS_2000 = getOSMatchesName(OS_NAME_WINDOWS_PREFIX + " 2000"); + public static final boolean IS_OS_WINDOWS_2000 = getOsMatchesName(OS_NAME_WINDOWS_PREFIX + " 2000"); /** *

@@ -1340,7 +1340,7 @@ public class SystemUtils { * * @since 3.1 */ - public static final boolean IS_OS_WINDOWS_2003 = getOSMatchesName(OS_NAME_WINDOWS_PREFIX + " 2003"); + public static final boolean IS_OS_WINDOWS_2003 = getOsMatchesName(OS_NAME_WINDOWS_PREFIX + " 2003"); /** *

@@ -1352,7 +1352,7 @@ public class SystemUtils { * * @since 3.1 */ - public static final boolean IS_OS_WINDOWS_2008 = getOSMatchesName(OS_NAME_WINDOWS_PREFIX + " Server 2008"); + public static final boolean IS_OS_WINDOWS_2008 = getOsMatchesName(OS_NAME_WINDOWS_PREFIX + " Server 2008"); /** *

@@ -1364,7 +1364,7 @@ public class SystemUtils { * * @since 3.4 */ - public static final boolean IS_OS_WINDOWS_2012 = getOSMatchesName(OS_NAME_WINDOWS_PREFIX + " Server 2012"); + public static final boolean IS_OS_WINDOWS_2012 = getOsMatchesName(OS_NAME_WINDOWS_PREFIX + " Server 2012"); /** *

@@ -1376,7 +1376,7 @@ public class SystemUtils { * * @since 2.0 */ - public static final boolean IS_OS_WINDOWS_95 = getOSMatchesName(OS_NAME_WINDOWS_PREFIX + " 95"); + public static final boolean IS_OS_WINDOWS_95 = getOsMatchesName(OS_NAME_WINDOWS_PREFIX + " 95"); /** *

@@ -1388,7 +1388,7 @@ public class SystemUtils { * * @since 2.0 */ - public static final boolean IS_OS_WINDOWS_98 = getOSMatchesName(OS_NAME_WINDOWS_PREFIX + " 98"); + public static final boolean IS_OS_WINDOWS_98 = getOsMatchesName(OS_NAME_WINDOWS_PREFIX + " 98"); /** *

@@ -1400,7 +1400,7 @@ public class SystemUtils { * * @since 2.0 */ - public static final boolean IS_OS_WINDOWS_ME = getOSMatchesName(OS_NAME_WINDOWS_PREFIX + " Me"); + public static final boolean IS_OS_WINDOWS_ME = getOsMatchesName(OS_NAME_WINDOWS_PREFIX + " Me"); /** *

@@ -1412,7 +1412,7 @@ public class SystemUtils { * * @since 2.0 */ - public static final boolean IS_OS_WINDOWS_NT = getOSMatchesName(OS_NAME_WINDOWS_PREFIX + " NT"); + public static final boolean IS_OS_WINDOWS_NT = getOsMatchesName(OS_NAME_WINDOWS_PREFIX + " NT"); /** *

@@ -1424,7 +1424,7 @@ public class SystemUtils { * * @since 2.0 */ - public static final boolean IS_OS_WINDOWS_XP = getOSMatchesName(OS_NAME_WINDOWS_PREFIX + " XP"); + public static final boolean IS_OS_WINDOWS_XP = getOsMatchesName(OS_NAME_WINDOWS_PREFIX + " XP"); // ----------------------------------------------------------------------- /** @@ -1437,7 +1437,7 @@ public class SystemUtils { * * @since 2.4 */ - public static final boolean IS_OS_WINDOWS_VISTA = getOSMatchesName(OS_NAME_WINDOWS_PREFIX + " Vista"); + public static final boolean IS_OS_WINDOWS_VISTA = getOsMatchesName(OS_NAME_WINDOWS_PREFIX + " Vista"); /** *

@@ -1449,7 +1449,7 @@ public class SystemUtils { * * @since 3.0 */ - public static final boolean IS_OS_WINDOWS_7 = getOSMatchesName(OS_NAME_WINDOWS_PREFIX + " 7"); + public static final boolean IS_OS_WINDOWS_7 = getOsMatchesName(OS_NAME_WINDOWS_PREFIX + " 7"); /** *

@@ -1461,7 +1461,7 @@ public class SystemUtils { * * @since 3.2 */ - public static final boolean IS_OS_WINDOWS_8 = getOSMatchesName(OS_NAME_WINDOWS_PREFIX + " 8"); + public static final boolean IS_OS_WINDOWS_8 = getOsMatchesName(OS_NAME_WINDOWS_PREFIX + " 8"); /** *

@@ -1473,7 +1473,7 @@ public class SystemUtils { * * @since 3.5 */ - public static final boolean IS_OS_WINDOWS_10 = getOSMatchesName(OS_NAME_WINDOWS_PREFIX + " 10"); + public static final boolean IS_OS_WINDOWS_10 = getOsMatchesName(OS_NAME_WINDOWS_PREFIX + " 10"); /** *

@@ -1490,7 +1490,7 @@ public class SystemUtils { // os.encoding = ISO8859_1 // os.name = z/OS // os.version = 02.02.00 - public static final boolean IS_OS_ZOS = getOSMatchesName("z/OS"); + public static final boolean IS_OS_ZOS = getOsMatchesName("z/OS"); /** *

@@ -1555,7 +1555,7 @@ public class SystemUtils { * @param osVersionPrefix the prefix for the version * @return true if matches, or false if not or can't determine */ - private static boolean getOSMatches(final String osNamePrefix, final String osVersionPrefix) { + private static boolean getOsMatches(final String osNamePrefix, final String osVersionPrefix) { return isOSMatch(OS_NAME, OS_VERSION, osNamePrefix, osVersionPrefix); } @@ -1565,7 +1565,7 @@ public class SystemUtils { * @param osNamePrefix the prefix for the os name * @return true if matches, or false if not or can't determine */ - private static boolean getOSMatchesName(final String osNamePrefix) { + private static boolean getOsMatchesName(final String osNamePrefix) { return isOSNameMatch(OS_NAME, osNamePrefix); }