diff options
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/indexer/DefaultSonarIndex.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/indexer/DefaultSonarIndex.java b/sonar-batch/src/main/java/org/sonar/batch/indexer/DefaultSonarIndex.java index 14b6f015d4a..b49d877b590 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/indexer/DefaultSonarIndex.java +++ b/sonar-batch/src/main/java/org/sonar/batch/indexer/DefaultSonarIndex.java @@ -311,7 +311,7 @@ public class DefaultSonarIndex extends SonarIndex { ResourceUtils.isEntity(resource) && metric.isOptimizedBestValue() == Boolean.TRUE && metric.getBestValue() != null && - metric.getBestValue().equals(measure.getValue()) && + Double.compare(metric.getBestValue(), measure.getValue())==0 && !measure.hasOptionalData()); } |