OsInfo增加isWindows11方法(pr#4054@Github)

This commit is contained in:
Looly
2025-09-03 16:48:04 +08:00
parent 778df6448e
commit 8b482e4ae3
2 changed files with 2 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
* 【core 】 `ReferenceUtil`增加`get`方法
* 【db 】 `Condition`增加构造方法支持BETWEENissue#4041@Github
* 【core 】 `IoUtil.writeObjects`判空避免空指针issue#4049@Github
* 【extra 】 `OsInfo`增加`isWindows11`方法pr#4054@Github
### 🐞Bug修复
* 【core 】 修复`ReflectUtil`中因class和Method关联导致的缓存无法回收问题issue#4039@Github

View File

@@ -352,6 +352,7 @@ public class OsInfo implements Serializable{
* </p>
*
* @return 如果当前OS类型为Windows 11则返回{@code true}
* @since 5.8.41
*/
public final boolean isWindows11() {
return IS_OS_WINDOWS_11;