Skip to content

Commit 2843cab

Browse files
committed
Update SystemUtils.java
1 parent 5819e1f commit 2843cab

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

microsphere-java-core/src/main/java/io/microsphere/util/SystemUtils.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public class SystemUtils {
3333

3434
private static final Logger logger = getLogger(SystemUtils.class);
3535

36+
3637
public static final String OS_NAME_WINDOWS_PREFIX = "Windows";
3738

3839
/**
@@ -484,6 +485,26 @@ public class SystemUtils {
484485
*/
485486
public static final boolean IS_JAVA_22 = matchesJavaVersion("22");
486487

488+
/**
489+
* <p>
490+
* Is {@code true} if this is Java version 23.x
491+
* </p>
492+
* <p>
493+
* The field will return {@code false} if {@link #JAVA_VERSION} is {@code null}.
494+
* </p>
495+
*/
496+
public static final boolean IS_JAVA_23 = matchesJavaVersion("23");
497+
498+
/**
499+
* <p>
500+
* Is {@code true} if this is Java version 24.x
501+
* </p>
502+
* <p>
503+
* The field will return {@code false} if {@link #JAVA_VERSION} is {@code null}.
504+
* </p>
505+
*/
506+
public static final boolean IS_JAVA_24 = matchesJavaVersion("24");
507+
487508
/**
488509
* Is <code>true</code> if current Java version is Long Term Supported(LTS)
489510
*/
@@ -530,4 +551,7 @@ public static String getSystemProperty(String key, String defaultValue) {
530551
private static boolean matchesJavaVersion(final String versionPrefix) {
531552
return startsWith(JAVA_SPECIFICATION_VERSION, versionPrefix);
532553
}
554+
555+
private SystemUtils() {
556+
}
533557
}

0 commit comments

Comments
 (0)