mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
!717 SystemPropsUtil.getBoolean方法应该只有值为true时才返回true,其他情况都应该返回false
Merge pull request !717 from uyong/v5-dev
This commit is contained in:
commit
981ea9a48d
@ -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