forked from I2P_Developers/i2p.i2p
Boolean.valueOf() -> Boolean.parseBoolean()
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user