diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-09-21 18:09:30 +0200 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-09-30 16:27:12 +0200 |
commit | 80b9f52b80c5ae3fcc81b8b8cc3209000a886b7f (patch) | |
tree | 6309fa9d853be81dd6ae47a1e07d7350480b3905 /sonar-batch-protocol | |
parent | 0847774db59344316629a7171c3943dbfaa3f52d (diff) | |
download | sonarqube-80b9f52b80c5ae3fcc81b8b8cc3209000a886b7f.tar.gz sonarqube-80b9f52b80c5ae3fcc81b8b8cc3209000a886b7f.zip |
SONAR-6818 Split batch/project WS in several simpler WS
Diffstat (limited to 'sonar-batch-protocol')
-rw-r--r-- | sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/FileData.java | 4 | ||||
-rw-r--r-- | sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectRepositories.java | 23 |
2 files changed, 5 insertions, 22 deletions
diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/FileData.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/FileData.java index 6fb54002ab0..98ab366601c 100644 --- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/FileData.java +++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/FileData.java @@ -41,8 +41,4 @@ public class FileData { public String revision() { return revision; } - - public boolean needBlame() { - return false; - } } diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectRepositories.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectRepositories.java index fdcfb0fe3f6..7d87cb0fd1b 100644 --- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectRepositories.java +++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectRepositories.java @@ -19,8 +19,6 @@ */ package org.sonar.batch.protocol.input; -import java.util.ArrayList; -import java.util.Collection; import java.util.Collections; import java.util.Date; import java.util.HashMap; @@ -36,6 +34,7 @@ import org.sonar.batch.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; @@ -58,6 +57,10 @@ public class ProjectRepositories { return this; } + public boolean exists() { + return exists; + } + public Map<String, Map<String, FileData>> fileDataByModuleAndPath() { return fileDataByModuleAndPath; } @@ -105,20 +108,4 @@ public class ProjectRepositories { public static ProjectRepositories fromJson(String json) { return GsonHelper.create().fromJson(json, ProjectRepositories.class); } - - public Collection<QProfile> qProfiles() { - return new ArrayList<>(); - } - - public Collection<ActiveRule> activeRules() { - return new ArrayList<>(); - } - - public void addQProfile(QProfile qProfile) { - // do nothing - } - - public void addActiveRule(ActiveRule activeRule) { - // do nothing - } } |