This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new 2c7dbba0f SystemUtils.java: Fix and updates related to macOS (#1085)
2c7dbba0f is described below

commit 2c7dbba0f2f2be7f8b0a0137c8a19b6cc3c13f76
Author: Ali Khaleqi Yekta <m...@yekta.dev>
AuthorDate: Sun Jul 23 21:48:35 2023 +0330

    SystemUtils.java: Fix and updates related to macOS (#1085)
    
    * Update SystemUtils.java
    
    Fix version value assigned to macOS Big Sur
    
    * Update SystemUtils.java
    
    Add `IS_OS_MAC_OSX_MONTEREY` and `IS_OS_MAC_OSX_VENTURA`
    
    * Update SystemUtils.java
    
    ---------
    
    Co-authored-by: Gary Gregory <garydgreg...@users.noreply.github.com>
---
 .../java/org/apache/commons/lang3/SystemUtils.java | 28 +++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/lang3/SystemUtils.java 
b/src/main/java/org/apache/commons/lang3/SystemUtils.java
index 1e79311f0..d6035744b 100644
--- a/src/main/java/org/apache/commons/lang3/SystemUtils.java
+++ b/src/main/java/org/apache/commons/lang3/SystemUtils.java
@@ -1451,7 +1451,33 @@ public class SystemUtils {
      *
      * @since 3.12.0
      */
-    public static final boolean IS_OS_MAC_OSX_BIG_SUR = getOsMatches("Mac OS 
X", "10.16");
+    public static final boolean IS_OS_MAC_OSX_BIG_SUR = getOsMatches("Mac OS 
X", "11");
+
+    /**
+     * Is {@code true} if this is Mac OS X Monterey.
+     *
+     * <p>
+     * The field will return {@code false} if {@code OS_NAME} is {@code null}.
+     * </p>
+     * <p>
+     * This value is initialized when the class is loaded.
+     * </p>
+     * @since 3.13.0
+     */
+    public static final boolean IS_OS_MAC_OSX_MONTEREY = getOsMatches("Mac OS 
X", "12");
+
+    /**
+     * Is {@code true} if this is Mac OS X Ventura.
+     *
+     * <p>
+     * The field will return {@code false} if {@code OS_NAME} is {@code null}.
+     * </p>
+     * <p>
+     * This value is initialized when the class is loaded.
+     * </p>
+     * @since 3.13.0
+     */
+    public static final boolean IS_OS_MAC_OSX_VENTURA = getOsMatches("Mac OS 
X", "13");
 
     /**
      * Is {@code true} if this is FreeBSD.

Reply via email to