Update ConvertUtils.java (#3789)
This commit is contained in:
parent
baa699a3f1
commit
a41d209d57
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user