aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleConfigurationProvider.java
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2018-12-05 10:23:09 +0100
committersonartech <sonartech@sonarsource.com>2019-01-16 09:43:06 +0100
commit532850a387e483592e6f2f80a5e833bcf218a58f (patch)
treebb504874ef6a1f36059113c962132e27660cb33f /sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleConfigurationProvider.java
parent55579a4572f8233957275c896139cb1dfedd2622 (diff)
downloadsonarqube-532850a387e483592e6f2f80a5e833bcf218a58f.tar.gz
sonarqube-532850a387e483592e6f2f80a5e833bcf218a58f.zip
Fix quality flaws
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleConfigurationProvider.java')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleConfigurationProvider.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleConfigurationProvider.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleConfigurationProvider.java
index 556d09b9184..a60556dee6c 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleConfigurationProvider.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleConfigurationProvider.java
@@ -28,18 +28,15 @@ import org.sonar.api.batch.bootstrap.ProjectDefinition;
import org.sonar.api.batch.fs.internal.DefaultInputModule;
import org.sonar.scanner.bootstrap.GlobalAnalysisMode;
import org.sonar.scanner.bootstrap.GlobalConfiguration;
-import org.sonar.scanner.report.AnalysisContextReportPublisher;
public class ModuleConfigurationProvider extends ProviderAdapter {
private ModuleConfiguration moduleConfiguration;
- public ModuleConfiguration provide(GlobalConfiguration globalConfig, DefaultInputModule module, ProjectServerSettings projectServerSettings,
- GlobalAnalysisMode analysisMode, AnalysisContextReportPublisher contextReportPublisher) {
+ public ModuleConfiguration provide(GlobalConfiguration globalConfig, DefaultInputModule module, ProjectServerSettings projectServerSettings, GlobalAnalysisMode analysisMode) {
if (moduleConfiguration == null) {
- Map<String, String> settings = new LinkedHashMap<>();
- settings.putAll(projectServerSettings.properties());
+ Map<String, String> settings = new LinkedHashMap<>(projectServerSettings.properties());
addScannerSideProperties(settings, module.definition());
moduleConfiguration = new ModuleConfiguration(globalConfig.getDefinitions(), globalConfig.getEncryption(), analysisMode, settings);