You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by eb...@apache.org on 2016/02/01 08:53:54 UTC
[2/3] [lang] Added new property IS_OS_MAC_OSX_EL_CAPITAN in
SystemUtils
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 <de...@gmail.com>
Authored: Mon Feb 1 15:17:49 2016 +0800
Committer: Emmanuel Bourg <eb...@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>