diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2014-07-19 00:02:04 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2014-07-19 00:02:58 +0200 |
commit | 1f231f2cfcd47e66ca818cd1a8cbd93cc89af45d (patch) | |
tree | 0b8ffad8066e9dd1e45b4a872e7b246ade7b3ce9 /sonar-batch-protocol | |
parent | 18a85015feb7a27bee89bcfda4421b92f0a9b8c7 (diff) | |
download | sonarqube-1f231f2cfcd47e66ca818cd1a8cbd93cc89af45d.tar.gz sonarqube-1f231f2cfcd47e66ca818cd1a8cbd93cc89af45d.zip |
SONAR-5417 Fix manual measures
Diffstat (limited to 'sonar-batch-protocol')
-rw-r--r-- | sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/Metric.java | 6 |
1 files changed, 5 insertions, 1 deletions
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 704a917aece..21193575608 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 @@ -19,6 +19,9 @@ */ package org.sonar.batch.protocol.input; +import javax.annotation.CheckForNull; +import javax.annotation.Nullable; + public class Metric { private final int id; @@ -31,7 +34,7 @@ public class Metric { private final boolean optimizedBestValue; - public Metric(int id, String key, String valueType, Double bestValue, boolean optimizedBestValue) { + public Metric(int id, String key, String valueType, @Nullable Double bestValue, boolean optimizedBestValue) { this.id = id; this.key = key; this.valueType = valueType; @@ -51,6 +54,7 @@ public class Metric { return valueType; } + @CheckForNull public Double bestValue() { return bestValue; } |