From a41d209d570ccf5deed6c6c608861b1638ded2f5 Mon Sep 17 00:00:00 2001 From: S2W Date: Wed, 9 Sep 2020 17:03:25 +0800 Subject: [PATCH] Update ConvertUtils.java (#3789) --- .../main/java/com/alibaba/nacos/common/utils/ConvertUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/alibaba/nacos/common/utils/ConvertUtils.java b/common/src/main/java/com/alibaba/nacos/common/utils/ConvertUtils.java index 14432eced..628d79bc3 100644 --- a/common/src/main/java/com/alibaba/nacos/common/utils/ConvertUtils.java +++ b/common/src/main/java/com/alibaba/nacos/common/utils/ConvertUtils.java @@ -126,7 +126,7 @@ public final class ConvertUtils { * @return the boolean value of the string, {@code false} if no match or the String is null */ public static boolean toBoolean(final String str) { - return toBooleanObject(str) == Boolean.TRUE; + return Boolean.TRUE.equals(toBooleanObject(str)); } /**