mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
SystemPropsUtil.getBoolean方法应该只有值为true时才返回true,其他情况都应该返回false
This commit is contained in:
parent
88c36b8bfa
commit
69782c0ced
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user