From 1ee9e0759c2af80d0a96b88c2976b0359ec945fb Mon Sep 17 00:00:00 2001 From: Looly Date: Mon, 1 Dec 2025 21:57:31 +0800 Subject: [PATCH] =?UTF-8?q?`ColorUtil`=E9=A2=9C=E8=89=B2=E5=90=8D=E7=A7=B0?= =?UTF-8?q?DARKGOLD=E3=80=81LIGHTGOLD=E6=96=B0=E5=A2=9E=E8=9B=87=E5=BD=A2?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E5=8C=B9=E9=85=8D=EF=BC=88pr#1400@Github?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 5 ++++- hutool-core/src/main/java/cn/hutool/core/img/ColorUtil.java | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1dcad719f4..56462327a9 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,12 @@ # 🚀Changelog ------------------------------------------------------------------------------------------------------------- -# 5.8.43 +# 5.8.43(2025-12-01) + ### 🐣新特性 +* 【core 】 `ColorUtil`颜色名称DARKGOLD、LIGHTGOLD新增蛇形命名匹配(pr#1400@Github) ### 🐞Bug修复 + ------------------------------------------------------------------------------------------------------------- # 5.8.42(2025-11-28) diff --git a/hutool-core/src/main/java/cn/hutool/core/img/ColorUtil.java b/hutool-core/src/main/java/cn/hutool/core/img/ColorUtil.java index 7c852be883..44d190c682 100644 --- a/hutool-core/src/main/java/cn/hutool/core/img/ColorUtil.java +++ b/hutool-core/src/main/java/cn/hutool/core/img/ColorUtil.java @@ -117,7 +117,7 @@ public class ColorUtil { final Integer r = Convert.toInt(rgb.get(0)); final Integer g = Convert.toInt(rgb.get(1)); final Integer b = Convert.toInt(rgb.get(2)); - if (false == ArrayUtil.hasNull(r, g, b)) { + if (!ArrayUtil.hasNull(r, g, b)) { return new Color(r, g, b); } } else {