diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-07-21 16:25:51 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-07-21 17:31:55 +0200 |
commit | 1f655d484cecd606c7c4af4a3452dd25801f1bd6 (patch) | |
tree | f95347ed8a23c0a1b72d1cb62de5ad36ae58c716 /sonar-plugin-api | |
parent | 1066a59abeb3e3cafda581b84b87fada2a5947a2 (diff) | |
download | sonarqube-1f655d484cecd606c7c4af4a3452dd25801f1bd6.tar.gz sonarqube-1f655d484cecd606c7c4af4a3452dd25801f1bd6.zip |
Remove useless usage of BatchReport.Measure.setDescription() and setVariationXXX()
Batch doesn't send anymore measure with variations, and description is no more used
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/measures/Measure.java | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/measures/Measure.java b/sonar-plugin-api/src/main/java/org/sonar/api/measures/Measure.java index b5f423c257e..4f2bef50a9f 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/measures/Measure.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/measures/Measure.java @@ -20,18 +20,16 @@ package org.sonar.api.measures; import com.google.common.annotations.Beta; -import org.apache.commons.lang.builder.ReflectionToStringBuilder; -import org.apache.commons.lang.math.NumberUtils; -import org.sonar.api.technicaldebt.batch.Characteristic; -import org.sonar.api.technicaldebt.batch.Requirement; - -import javax.annotation.CheckForNull; -import javax.annotation.Nullable; - import java.io.Serializable; import java.math.BigDecimal; import java.math.RoundingMode; import java.util.Date; +import javax.annotation.CheckForNull; +import javax.annotation.Nullable; +import org.apache.commons.lang.builder.ReflectionToStringBuilder; +import org.apache.commons.lang.math.NumberUtils; +import org.sonar.api.technicaldebt.batch.Characteristic; +import org.sonar.api.technicaldebt.batch.Requirement; /** * A class to handle measures. @@ -241,6 +239,7 @@ public class Measure<G extends Serializable> implements Serializable { /** * @return the value of the measure as a double */ + @CheckForNull public Double getValue() { return value; } |