aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/apache/commons/lang3/SystemUtils.java
diff options
context:
space:
mode:
authorGilles Sadowski <gilles@harfang.homelinux.org>2018-03-08 13:54:31 +0100
committerGilles Sadowski <gilles@harfang.homelinux.org>2018-03-08 13:54:31 +0100
commit50ce8c44e1601acffa39f5568f0fc140aade0564 (patch)
tree0bfe1783fb1c31b039d46fa7ffd13ff810b8f4b0 /src/main/java/org/apache/commons/lang3/SystemUtils.java
parentcb686673a70a6f14c35575550c48c37d19a1598b (diff)
downloadapache-commons-lang-50ce8c44e1601acffa39f5568f0fc140aade0564.tar.gz
LANG-1384: Version "11" is available.
Diffstat (limited to 'src/main/java/org/apache/commons/lang3/SystemUtils.java')
-rw-r--r--src/main/java/org/apache/commons/lang3/SystemUtils.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/org/apache/commons/lang3/SystemUtils.java b/src/main/java/org/apache/commons/lang3/SystemUtils.java
index a6d9c2e9a..f91628a4b 100644
--- a/src/main/java/org/apache/commons/lang3/SystemUtils.java
+++ b/src/main/java/org/apache/commons/lang3/SystemUtils.java
@@ -985,6 +985,18 @@ public class SystemUtils {
*/
public static final boolean IS_JAVA_10 = getJavaVersionMatches("10");
+ /**
+ * <p>
+ * Is {@code true} if this is Java version 11 (also 11.x versions).
+ * </p>
+ * <p>
+ * The field will return {@code false} if {@link #JAVA_VERSION} is {@code null}.
+ * </p>
+ *
+ * @since 3.8
+ */
+ public static final boolean IS_JAVA_11 = getJavaVersionMatches("11");
+
// Operating system checks
// -----------------------------------------------------------------------
// These MUST be declared after those above as they depend on the