commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1564150 - in /commons/proper/lang/trunk/src: changes/changes.xml main/java/org/apache/commons/lang3/SystemUtils.java
Date Tue, 04 Feb 2014 01:48:15 GMT
Author: ggregory
Date: Tue Feb  4 01:48:15 2014
New Revision: 1564150

URL: http://svn.apache.org/r1564150
Log:
[LANG-966] Add IBM iSeries 5 OS detection.

Modified:
    commons/proper/lang/trunk/src/changes/changes.xml
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SystemUtils.java

Modified: commons/proper/lang/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/changes/changes.xml?rev=1564150&r1=1564149&r2=1564150&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/changes/changes.xml [utf-8] (original)
+++ commons/proper/lang/trunk/src/changes/changes.xml [utf-8] Tue Feb  4 01:48:15 2014
@@ -44,6 +44,7 @@
     <action issue="LANG-834" type="add" dev="britter">Validate: add inclusiveBetween
and exclusiveBetween overloads for primitive types</action>
     <action issue="LANG-900" type="add" dev="britter" due-to="Duncan Jones">New RandomUtils
class</action>
     <action issue="LANG-915" type="fix" dev="britter" due-to="Sergio Fernández">Wrong
locale handling in LocaleUtils.toLocale()</action>
+    <action issue="LANG-966" type="add" dev="ggregory">Add IBM iSeries 5 OS detection</action>
   </release>
 
   <release version="3.2.1" date="2014-01-05" description="Bug fix for 3.2">

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SystemUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SystemUtils.java?rev=1564150&r1=1564149&r2=1564150&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SystemUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SystemUtils.java Tue
Feb  4 01:48:15 2014
@@ -957,6 +957,18 @@ public class SystemUtils {
      * @since 2.0
      */
     public static final boolean IS_OS_HP_UX = getOSMatchesName("HP-UX");
+    
+    /**
+     * <p>
+     * Is {@code true} if this is IBM iSeries 5.
+     * </p>
+     * <p>
+     * The field will return {@code false} if {@code OS_NAME} is {@code null}.
+     * </p>
+     *
+     * @since 3.3
+     */
+    public static final boolean IS_OS_ISERIES_5 = getOSMatchesName("i5/OS");
 
     /**
      * <p>



Mime
View raw message