From 8b482e4ae34d0e82968615c35087cb148283565d Mon Sep 17 00:00:00 2001 From: Looly Date: Wed, 3 Sep 2025 16:48:04 +0800 Subject: [PATCH] =?UTF-8?q?`OsInfo`=E5=A2=9E=E5=8A=A0`isWindows11`?= =?UTF-8?q?=E6=96=B9=E6=B3=95=EF=BC=88pr#4054@Github=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + hutool-system/src/main/java/cn/hutool/system/OsInfo.java | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index efaa30e798..2ab573cbd8 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ * 【core 】 `ReferenceUtil`增加`get`方法 * 【db 】 `Condition`增加构造方法支持BETWEEN(issue#4041@Github) * 【core 】 `IoUtil.writeObjects`判空避免空指针(issue#4049@Github) +* 【extra 】 `OsInfo`增加`isWindows11`方法(pr#4054@Github) ### 🐞Bug修复 * 【core 】 修复`ReflectUtil`中因class和Method关联导致的缓存无法回收问题(issue#4039@Github) diff --git a/hutool-system/src/main/java/cn/hutool/system/OsInfo.java b/hutool-system/src/main/java/cn/hutool/system/OsInfo.java index 69997f7f87..95642280d6 100755 --- a/hutool-system/src/main/java/cn/hutool/system/OsInfo.java +++ b/hutool-system/src/main/java/cn/hutool/system/OsInfo.java @@ -352,6 +352,7 @@ public class OsInfo implements Serializable{ *

* * @return 如果当前OS类型为Windows 11,则返回{@code true} + * @since 5.8.41 */ public final boolean isWindows11() { return IS_OS_WINDOWS_11;