diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2018-11-19 11:08:59 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2019-01-16 09:43:02 +0100 |
commit | e4c0b858c7e6807801c6481d995ca11682c58fad (patch) | |
tree | 612e7224f9bd131076005d56964a9fc5be0d72c3 /sonar-scanner-protocol | |
parent | b6f878d8d48c55c03bcbf2ba8010526f1fa12f49 (diff) | |
download | sonarqube-e4c0b858c7e6807801c6481d995ca11682c58fad.tar.gz sonarqube-e4c0b858c7e6807801c6481d995ca11682c58fad.zip |
SONAR-11488 Stop loading module level settings in scanner
Diffstat (limited to 'sonar-scanner-protocol')
-rw-r--r-- | sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/input/ProjectRepositories.java | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/input/ProjectRepositories.java b/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/input/ProjectRepositories.java index 809ac48a88d..9a557aa64cc 100644 --- a/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/input/ProjectRepositories.java +++ b/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/input/ProjectRepositories.java @@ -25,7 +25,6 @@ import java.util.HashMap; import java.util.Map; import javax.annotation.CheckForNull; import javax.annotation.Nullable; -import org.sonar.scanner.protocol.GsonHelper; /** * Container for all project data going from server to batch. @@ -34,29 +33,9 @@ import org.sonar.scanner.protocol.GsonHelper; public class ProjectRepositories { private long timestamp; - private boolean exists; - private Map<String, Map<String, String>> settingsByModule = new HashMap<>(); private Map<String, Map<String, FileData>> fileDataByModuleAndPath = new HashMap<>(); private Date lastAnalysisDate; - public Map<String, String> settings(String moduleKey) { - return settingsByModule.containsKey(moduleKey) ? settingsByModule.get(moduleKey) : Collections.<String, String>emptyMap(); - } - - public Map<String, Map<String, String>> settings() { - return settingsByModule; - } - - public ProjectRepositories addSettings(String moduleKey, Map<String, String> settings) { - Map<String, String> existingSettings = settingsByModule.computeIfAbsent(moduleKey, k -> new HashMap<>()); - existingSettings.putAll(settings); - return this; - } - - public boolean exists() { - return exists; - } - public Map<String, Map<String, FileData>> fileDataByModuleAndPath() { return fileDataByModuleAndPath; } @@ -96,12 +75,4 @@ public class ProjectRepositories { public void setLastAnalysisDate(@Nullable Date lastAnalysisDate) { this.lastAnalysisDate = lastAnalysisDate; } - - public String toJson() { - return GsonHelper.create().toJson(this); - } - - public static ProjectRepositories fromJson(String json) { - return GsonHelper.create().fromJson(json, ProjectRepositories.class); - } } |