mirror of
https://gitee.com/dromara/hutool.git
synced 2026-02-09 09:16:26 +08:00
JdkUtil添加IS_AT_LEAST_JDK25
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
* 【core 】 `ColorUtil`颜色名称DARKGOLD、LIGHTGOLD新增蛇形命名匹配(pr#1400@Github)
|
||||
* 【core 】 添加`BeanPath`方法中对“*”的处理逻辑(pr#1412@Gitee)
|
||||
* 【core 】 `StrUtil`添加`reverseByCodePoint`方法(pr#4187@Github)
|
||||
* 【core 】 `JdkUtil`添加`IS_AT_LEAST_JDK25`
|
||||
|
||||
### 🐞Bug修复
|
||||
* 【core 】 修复`Calculator.conversion`方法计算包含科学计数法表达式的值时逻辑有误,结果不符合预期(pr#4172@Github)
|
||||
|
||||
@@ -33,6 +33,11 @@ public class JdkUtil {
|
||||
*/
|
||||
public static final boolean IS_AT_LEAST_JDK17;
|
||||
|
||||
/**
|
||||
* 是否大于等于JDK25
|
||||
*/
|
||||
public static final boolean IS_AT_LEAST_JDK25;
|
||||
|
||||
/**
|
||||
* 是否Android环境
|
||||
*/
|
||||
@@ -43,6 +48,7 @@ public class JdkUtil {
|
||||
JVM_VERSION = _getJvmVersion();
|
||||
IS_JDK8 = 8 == JVM_VERSION;
|
||||
IS_AT_LEAST_JDK17 = JVM_VERSION >= 17;
|
||||
IS_AT_LEAST_JDK25 = JVM_VERSION >= 25;
|
||||
|
||||
// JVM名称
|
||||
final String jvmName = _getJvmName();
|
||||
|
||||
Reference in New Issue
Block a user