diff --git a/dependency-check-utils/src/main/java/org/owasp/dependencycheck/utils/Settings.java b/dependency-check-utils/src/main/java/org/owasp/dependencycheck/utils/Settings.java index 99baefe5e..1d897573b 100644 --- a/dependency-check-utils/src/main/java/org/owasp/dependencycheck/utils/Settings.java +++ b/dependency-check-utils/src/main/java/org/owasp/dependencycheck/utils/Settings.java @@ -467,6 +467,17 @@ public final class Settings { setString(key, Boolean.toString(value)); } + /** + * Sets a property value. + * + * @param key the key for the property + * @param value the value for the property + */ + public static void setInt(String key, int value) { + localSettings.get().props.setProperty(key, String.valueOf(value)); + LOGGER.debug("Setting: {}='{}'", key, value); + } + /** * Merges a new properties file into the current properties. This method allows for the loading of a user provided properties * file.