diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 9e9003f2b..7f7032a9f 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -44,6 +44,7 @@ Validate: add inclusiveBetween and exclusiveBetween overloads for primitive types New RandomUtils class Wrong locale handling in LocaleUtils.toLocale() + Add IBM iSeries 5 OS detection diff --git a/src/main/java/org/apache/commons/lang3/SystemUtils.java b/src/main/java/org/apache/commons/lang3/SystemUtils.java index 97dbb3222..1b5df592e 100644 --- a/src/main/java/org/apache/commons/lang3/SystemUtils.java +++ b/src/main/java/org/apache/commons/lang3/SystemUtils.java @@ -957,6 +957,18 @@ public class SystemUtils { * @since 2.0 */ public static final boolean IS_OS_HP_UX = getOSMatchesName("HP-UX"); + + /** + *

+ * Is {@code true} if this is IBM iSeries 5. + *

+ *

+ * The field will return {@code false} if {@code OS_NAME} is {@code null}. + *

+ * + * @since 3.3 + */ + public static final boolean IS_OS_ISERIES_5 = getOSMatchesName("i5/OS"); /** *