aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2015-06-22 18:48:58 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2015-06-23 11:29:38 +0200
commitf00900ef91f6d95d85093f32072020192c5fab63 (patch)
treebf6418daf13b9c0afb22a236292aec2e081943cb /sonar-plugin-api/src
parent03f9c836b00eab8573dafb75d7de66cdb79d2c5e (diff)
downloadsonarqube-f00900ef91f6d95d85093f32072020192c5fab63.tar.gz
sonarqube-f00900ef91f6d95d85093f32072020192c5fab63.zip
SONAR-6646 measures of bestValueOptimized Metrics must not be persisted
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/measures/Measure.java2
1 files changed, 1 insertions, 1 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 c406861c236..b5f423c257e 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
@@ -708,7 +708,7 @@ public class Measure<G extends Serializable> implements Serializable {
private static boolean isZeroVariation(Double... variations) {
for (Double variation : variations) {
- if (!((variation == null) || NumberUtils.compare(variation, 0.0) == 0)) {
+ if (variation != null && NumberUtils.compare(variation, 0.0) != 0) {
return false;
}
}