This commit is contained in:
Shinsuke Sugaya 2016-03-01 22:35:49 +09:00
parent 89e09ca567
commit b605573221

View file

@ -73,7 +73,11 @@ public interface FessProp {
}
public default void setSystemProperty(final String key, final String value) {
ComponentUtil.getSystemProperties().setProperty(key, value);
if (value != null) {
ComponentUtil.getSystemProperties().setProperty(key, value);
} else {
ComponentUtil.getSystemProperties().remove(key);
}
}
public default boolean getSystemPropertyAsBoolean(final String key, final boolean defaultValue) {