Negation missing in SystemProperties (#1433)
This commit is contained in:
@@ -42,19 +42,19 @@ public class SystemProperties {
|
||||
return native_get(key);
|
||||
}
|
||||
private static int native_get_int(String key, int def) {
|
||||
if(configModule.hasProperty(key))
|
||||
if(!configModule.hasProperty(key))
|
||||
return def;
|
||||
else
|
||||
return configModule.getIntProperty(key);
|
||||
}
|
||||
private static long native_get_long(String key, long def) {
|
||||
if(configModule.hasProperty(key))
|
||||
if(!configModule.hasProperty(key))
|
||||
return def;
|
||||
else
|
||||
return configModule.getLongProperty(key);
|
||||
}
|
||||
private static boolean native_get_boolean(String key, boolean def) {
|
||||
if(configModule.hasProperty(key))
|
||||
if(!configModule.hasProperty(key))
|
||||
return def;
|
||||
else
|
||||
return configModule.getBooleanProperty(key);
|
||||
@@ -123,4 +123,4 @@ public class SystemProperties {
|
||||
}
|
||||
native_set(key, val);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user