fix: 修复判断字符串是否为YES始终为false
This commit is contained in:
@@ -52,7 +52,7 @@ public class ConstsBoolean {
|
||||
}
|
||||
|
||||
public static boolean isYes(String value) {
|
||||
return "YES" == value.toUpperCase();
|
||||
return "YES".equalsIgnoreCase(value);
|
||||
}
|
||||
|
||||
public static boolean isFalse(int value) {
|
||||
|
||||
Reference in New Issue
Block a user