mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +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;
|
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