Negation missing in SystemProperties (#1433)

This commit is contained in:
Constantin Piber
2025-06-12 17:41:08 +02:00
committed by GitHub
parent 611a7db2e1
commit 09061a38bc

View File

@@ -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);
}
}
}