aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch-protocol/src
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-01-23 15:50:17 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-01-23 15:50:17 +0100
commit51b8c91b138aab690921e647e30deabbaf61e75b (patch)
tree7295f35a5068aa7f9640e32f431c771a6ab1f613 /sonar-batch-protocol/src
parentfa8406f747589de519a6ba1c75e1e8ee64365b52 (diff)
downloadsonarqube-51b8c91b138aab690921e647e30deabbaf61e75b.tar.gz
sonarqube-51b8c91b138aab690921e647e30deabbaf61e75b.zip
Fix quality flaws
Diffstat (limited to 'sonar-batch-protocol/src')
-rw-r--r--sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java10
1 files changed, 9 insertions, 1 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..d9bf2e3bea7 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
@@ -30,7 +30,7 @@ public class ActiveRule {
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, String name, @Nullable String severity, @Nullable String internalKey, @Nullable String language) {
this.repositoryKey = repositoryKey;
this.ruleKey = ruleKey;
this.name = name;
@@ -51,10 +51,18 @@ public class ActiveRule {
return name;
}
+ /**
+ * Is null on manual rules
+ */
+ @CheckForNull
public String severity() {
return severity;
}
+ /**
+ * Is null on manual rules
+ */
+ @CheckForNull
public String language() {
return language;
}