commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ebo...@apache.org
Subject [2/3] [lang] Added new property IS_OS_MAC_OSX_EL_CAPITAN in SystemUtils
Date Mon, 01 Feb 2016 07:53:54 GMT
Added new property IS_OS_MAC_OSX_EL_CAPITAN in SystemUtils


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/c202aa8c
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/c202aa8c
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/c202aa8c

Branch: refs/heads/master
Commit: c202aa8cec19d80f4671e77370287540a0777b7b
Parents: 3b204c0
Author: Jake Wang <delight.wjk@gmail.com>
Authored: Mon Feb 1 15:17:49 2016 +0800
Committer: Emmanuel Bourg <ebourg@apache.org>
Committed: Mon Feb 1 08:48:07 2016 +0100

----------------------------------------------------------------------
 src/main/java/org/apache/commons/lang3/SystemUtils.java | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/c202aa8c/src/main/java/org/apache/commons/lang3/SystemUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/SystemUtils.java b/src/main/java/org/apache/commons/lang3/SystemUtils.java
index 8c6ab47..fce5863 100644
--- a/src/main/java/org/apache/commons/lang3/SystemUtils.java
+++ b/src/main/java/org/apache/commons/lang3/SystemUtils.java
@@ -1182,6 +1182,18 @@ public class SystemUtils {
 
     /**
      * <p>
+     * Is {@code true} if this is Mac OS X El Capitan.
+     * </p>
+     * <p>
+     * The field will return {@code false} if {@code OS_NAME} is {@code null}.
+     * </p>
+     *
+     * @since 3.4
+     */
+    public static final boolean IS_OS_MAC_OSX_EL_CAPITAN = getOSMatches("Mac OS X", "10.11");
+
+    /**
+     * <p>
      * Is {@code true} if this is FreeBSD.
      * </p>
      * <p>


Mime
View raw message