diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-02-09 12:06:35 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-02-09 12:33:49 +0100 |
commit | b49f4a0e2dc098099f2172e24a48768a983f96f5 (patch) | |
tree | 1691ee77bfb8cc247e940c57351cddb45a46442f /sonar-batch-protocol/src/main/java | |
parent | 1a967d04eae33998087b7ee09068c9fb05a8696a (diff) | |
download | sonarqube-b49f4a0e2dc098099f2172e24a48768a983f96f5.tar.gz sonarqube-b49f4a0e2dc098099f2172e24a48768a983f96f5.zip |
SONAR-6162 Return template rule key in /batch/projects WS
Diffstat (limited to 'sonar-batch-protocol/src/main/java')
-rw-r--r-- | sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java index 4fda09f8910..157253fa056 100644 --- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java +++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java @@ -26,13 +26,14 @@ import java.util.HashMap; import java.util.Map; public class ActiveRule { - private final String repositoryKey, ruleKey; + private final String repositoryKey, ruleKey, templateRuleKey; private final String name, severity, internalKey, language; private final Map<String, String> params = new HashMap<String, String>(); - public ActiveRule(String repositoryKey, String ruleKey, String name, String severity, @Nullable String internalKey, String language) { + public ActiveRule(String repositoryKey, String ruleKey, @Nullable String templateRuleKey, String name, String severity, @Nullable String internalKey, String language) { this.repositoryKey = repositoryKey; this.ruleKey = ruleKey; + this.templateRuleKey = templateRuleKey; this.name = name; this.severity = severity; this.internalKey = internalKey; @@ -47,6 +48,11 @@ public class ActiveRule { return ruleKey; } + @CheckForNull + public String templateRuleKey() { + return templateRuleKey; + } + public String name() { return name; } |