aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2016-11-08 14:16:59 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2016-11-08 14:17:07 +0100
commit90b80bd13929daf105060524bd5170b1b0d30e96 (patch)
treeff0072639516396a258f97f387e2ef9154ab2253 /sonar-plugin-api/src
parent8916c91390f09ea766ce0668d1795aa8e67cf5c2 (diff)
downloadsonarqube-90b80bd13929daf105060524bd5170b1b0d30e96.tar.gz
sonarqube-90b80bd13929daf105060524bd5170b1b0d30e96.zip
Fix quality flaws
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/measures/CountDistributionBuilder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/measures/CountDistributionBuilder.java b/sonar-plugin-api/src/main/java/org/sonar/api/measures/CountDistributionBuilder.java
index 5ab94f297e2..9ff08e55407 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/measures/CountDistributionBuilder.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/measures/CountDistributionBuilder.java
@@ -22,6 +22,7 @@ package org.sonar.api.measures;
import com.google.common.collect.Multiset;
import com.google.common.collect.TreeMultiset;
import java.util.Map;
+import javax.annotation.Nullable;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.math.NumberUtils;
import org.sonar.api.utils.KeyValueFormat;
@@ -104,7 +105,7 @@ public class CountDistributionBuilder implements MeasureBuilder {
* @param measure the measure to add to the current one
* @return the current object
*/
- public CountDistributionBuilder add(Measure measure) {
+ public CountDistributionBuilder add(@Nullable Measure measure) {
if (measure != null && measure.getData() != null) {
Map<String, String> map = KeyValueFormat.parse(measure.getData());
for (Map.Entry<String, String> entry : map.entrySet()) {