aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch-protocol
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-07-24 14:56:08 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-07-24 14:56:38 +0200
commit7e3e925505cf950e564bb4bc877cab0012640988 (patch)
tree7d0a67cca2c274cb629d56b2c72e59cf7472934b /sonar-batch-protocol
parent1e46f499f5879f330039482437682cd9e3016ccb (diff)
downloadsonarqube-7e3e925505cf950e564bb4bc877cab0012640988.tar.gz
sonarqube-7e3e925505cf950e564bb4bc877cab0012640988.zip
Fix some quality flaws
Diffstat (limited to 'sonar-batch-protocol')
-rw-r--r--sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java4
1 files changed, 3 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 6c1992ac1e2..e9b4cab7621 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
@@ -20,6 +20,7 @@
package org.sonar.batch.protocol.input;
import javax.annotation.CheckForNull;
+import javax.annotation.Nullable;
import java.util.HashMap;
import java.util.Map;
@@ -29,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, String internalKey, String language) {
+ public ActiveRule(String repositoryKey, String ruleKey, @Nullable String name, String severity, String internalKey, String language) {
this.repositoryKey = repositoryKey;
this.ruleKey = ruleKey;
this.name = name;
@@ -46,6 +47,7 @@ public class ActiveRule {
return ruleKey;
}
+ @CheckForNull
public String name() {
return name;
}