diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-07-30 15:17:55 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-07-30 15:25:18 +0200 |
commit | ed7933c1bb27808106fe52e50e018207ffea5fed (patch) | |
tree | 37180022812adbbe5a2c088dab15e1076e475d56 /sonar-batch-protocol | |
parent | c477a34b4ac84dbac9bba08f13dc1718da1b2231 (diff) | |
download | sonarqube-ed7933c1bb27808106fe52e50e018207ffea5fed.tar.gz sonarqube-ed7933c1bb27808106fe52e50e018207ffea5fed.zip |
Fix quality flaws
Diffstat (limited to 'sonar-batch-protocol')
-rw-r--r-- | sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java | 4 | ||||
-rw-r--r-- | sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/Metric.java | 3 |
2 files changed, 5 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 6c1992ac1e2..4fda09f8910 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, String name, String severity, @Nullable String internalKey, String language) { this.repositoryKey = repositoryKey; this.ruleKey = ruleKey; this.name = name; @@ -72,6 +73,7 @@ public class ActiveRule { return params; } + @CheckForNull public String internalKey() { return internalKey; } diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/Metric.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/Metric.java index f09f3b34e81..775acb52523 100644 --- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/Metric.java +++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/Metric.java @@ -49,7 +49,7 @@ public class Metric { public Metric(int id, String key, String valueType, - String description, + @Nullable String description, int direction, String name, boolean qualitative, @@ -82,6 +82,7 @@ public class Metric { return valueType; } + @CheckForNull public String description() { return description; } |