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;
|
return defaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
value = value.trim().toLowerCase();
|
return BooleanUtil.toBoolean(value);
|
||||||
if (value.isEmpty()) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return Convert.toBool(value, defaultValue);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user