diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2019-10-15 13:31:21 -0500 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-10-21 20:21:11 +0200 |
commit | fe3c5105bd62267bf8365101066f6ded7e6a6d33 (patch) | |
tree | b9da0fb0913a260e517e2ae762bfdf12de1e7066 /sonar-scanner-engine/src/main/java/org/sonar/batch | |
parent | 80f0a0e9ab86be120d6e3edf3499d7dce828198a (diff) | |
download | sonarqube-fe3c5105bd62267bf8365101066f6ded7e6a6d33.tar.gz sonarqube-fe3c5105bd62267bf8365101066f6ded7e6a6d33.zip |
Remove deprecated code in scanner
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/batch')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper/LoggingConfiguration.java | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper/LoggingConfiguration.java b/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper/LoggingConfiguration.java index bf7b4f63d6c..a211f1e5a24 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper/LoggingConfiguration.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper/LoggingConfiguration.java @@ -21,7 +21,6 @@ package org.sonar.batch.bootstrapper; import java.util.HashMap; import java.util.Map; -import javax.annotation.CheckForNull; import javax.annotation.Nullable; import org.apache.commons.lang.StringUtils; @@ -31,12 +30,6 @@ import org.apache.commons.lang.StringUtils; public final class LoggingConfiguration { public static final String PROPERTY_ROOT_LOGGER_LEVEL = "ROOT_LOGGER_LEVEL"; - /** - * @deprecated since 5.2 there is no more db access from scanner side - */ - @Deprecated - public static final String PROPERTY_SQL_LOGGER_LEVEL = "SQL_LOGGER_LEVEL"; - public static final String PROPERTY_FORMAT = "FORMAT"; public static final String LEVEL_ROOT_VERBOSE = "DEBUG"; @@ -90,19 +83,6 @@ public final class LoggingConfiguration { return setVerbose(verbose); } - @CheckForNull - private static String getFallback(String key, Map<String, String> properties, @Nullable Map<String, String> fallback) { - if (properties.containsKey(key)) { - return properties.get(key); - } - - if (fallback != null) { - return fallback.get(key); - } - - return null; - } - public LoggingConfiguration setRootLevel(String level) { return addSubstitutionVariable(PROPERTY_ROOT_LOGGER_LEVEL, level); } @@ -111,7 +91,7 @@ public final class LoggingConfiguration { return addSubstitutionVariable(PROPERTY_FORMAT, StringUtils.defaultIfBlank(format, FORMAT_DEFAULT)); } - public LoggingConfiguration addSubstitutionVariable(String key, String value) { + private LoggingConfiguration addSubstitutionVariable(String key, String value) { substitutionVariables.put(key, value); return this; } |