Update ConvertUtils.java (#3789)

This commit is contained in:
S2W 2020-09-09 17:03:25 +08:00 committed by GitHub
parent baa699a3f1
commit a41d209d57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));
}
/**