Boolean.valueOf() -> Boolean.parseBoolean()

This commit is contained in:
zzz
2021-03-20 12:27:46 -04:00
parent 838295c014
commit b55fbbf099
10 changed files with 17 additions and 17 deletions

View File

@@ -991,7 +991,7 @@ public abstract class Addresses {
*/
private static String getPrivacyStatus() {
String rv = useIPv6TempAddresses();
if (Boolean.valueOf(rv)) {
if (Boolean.parseBoolean(rv)) {
long pref = getLong("/proc/sys/net/ipv6/conf/all/temp_prefered_lft");
if (pref > 0)
rv += ", preferred lifetime " + DataHelper.formatDuration(pref * 1000);

View File

@@ -44,7 +44,7 @@ public abstract class SystemVersion {
private static final boolean _hasWrapper = System.getProperty("wrapper.version") != null;
private static final boolean _isLinuxService;
// found in Tanuki WrapperManager source so we don't need the WrapperManager class here
private static final boolean _isWindowsService = _isWin && _hasWrapper && Boolean.valueOf(System.getProperty("wrapper.service"));
private static final boolean _isWindowsService = _isWin && _hasWrapper && Boolean.parseBoolean(System.getProperty("wrapper.service"));
private static final boolean _isService;
private static final boolean _isSlow;