From 69782c0ced6315bafbceb2d870de62dc7ef0ddfc Mon Sep 17 00:00:00 2001 From: gonggy <514592053@qq.com> Date: Wed, 20 Jul 2022 19:19:46 +0800 Subject: [PATCH] =?UTF-8?q?SystemPropsUtil.getBoolean=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E5=BA=94=E8=AF=A5=E5=8F=AA=E6=9C=89=E5=80=BC=E4=B8=BAtrue?= =?UTF-8?q?=E6=97=B6=E6=89=8D=E8=BF=94=E5=9B=9Etrue=EF=BC=8C=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E6=83=85=E5=86=B5=E9=83=BD=E5=BA=94=E8=AF=A5=E8=BF=94?= =?UTF-8?q?=E5=9B=9Efalse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/cn/hutool/core/util/SystemPropsUtil.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/hutool-core/src/main/java/cn/hutool/core/util/SystemPropsUtil.java b/hutool-core/src/main/java/cn/hutool/core/util/SystemPropsUtil.java index 83d9d1cf7..f615c67e8 100644 --- a/hutool-core/src/main/java/cn/hutool/core/util/SystemPropsUtil.java +++ b/hutool-core/src/main/java/cn/hutool/core/util/SystemPropsUtil.java @@ -93,12 +93,7 @@ public class SystemPropsUtil { return defaultValue; } - value = value.trim().toLowerCase(); - if (value.isEmpty()) { - return true; - } - - return Convert.toBool(value, defaultValue); + return BooleanUtil.toBoolean(value); } /**