diff --git a/CHANGELOG.md b/CHANGELOG.md index 875908f76..497f80fc9 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,10 +10,12 @@ * 【core 】 `IdcardUtil`验证10位身份证兼容中英文括号(issue#IBP6T1@Gitee) * 【extra 】 `PinyinUtil`增加重载可选是否返回声调(pr#3875@Github) * 【http 】 `HttpBase`增加重载可选是否返回声调(pr#3883@Github) +* 【core 】 增加`VersionUtil`版本比较工具(pr#3876@Github) ### 🐞Bug修复 * 【setting】 修复`SettingLoader`load未抛出异常导致配置文件无法正常遍历的问题(pr#3868@Github) * 【cache 】 修复`ReentrantCache#getOrRemoveExpired`方法丢失onRemove触发问题(pr#1315@Gitee) +* 【json 】 修复`JsonUtil.toBean`泛型数组类型丢失问题(pr#3876@Github) ------------------------------------------------------------------------------------------------------------- # 5.8.36(2025-02-18) diff --git a/hutool-core/src/test/java/cn/hutool/core/util/VersionUtilTest.java b/hutool-core/src/test/java/cn/hutool/core/util/VersionUtilTest.java index 4b3dc7893..1e71b1cf8 100644 --- a/hutool-core/src/test/java/cn/hutool/core/util/VersionUtilTest.java +++ b/hutool-core/src/test/java/cn/hutool/core/util/VersionUtilTest.java @@ -40,7 +40,7 @@ class VersionUtilTest { String currentVersion = "1.0.2"; assertTrue(VersionUtil.isLessThanOrEqual(currentVersion, "1.0.2")); assertFalse(VersionUtil.isLessThanOrEqual(currentVersion, "1.0.1")); - assertFalse(VersionUtil.isLessThanOrEqual(currentVersion, "1.1")); + assertTrue(VersionUtil.isLessThanOrEqual(currentVersion, "1.1")); } @Test