/** * Remove property from the user-defined runtime configuration. * If value is null, clear the property, otherwise set property to value. * * @param key The key of the property to remove. * @param value The value to reset to (if not null) */ default void resetProperty(@NotNull String key, String value) { try { if (value == null) { getRuntimeProperties().remove(key); } else { getRuntimeProperties().setProperty(key, value); } } catch (Exception e) { throw new SystemConfigException(e); } }
/** * Remove property from the user-defined runtime configuration. * If value is null, clear the property, otherwise set property to value. * * @param key The key of the property to remove. * @param value The value to reset to (if not null) */ default void resetProperty(@NotNull String key, String value) { try { if (value == null) { getRuntimeProperties().remove(key); } else { getRuntimeProperties().setProperty(key, value); } } catch (Exception e) { throw new SystemConfigException(e); } }