diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-10-19 15:31:17 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-10-19 15:31:17 +0000 |
commit | db2c24f023c8ab6dfbd473269086c61847720dea (patch) | |
tree | fa8fd798d45d06ed90b8034baff8dc7cb017a6f9 /sonar-batch | |
parent | 0398bddbda6f6c75d1feacd73e7f66c56cfed2c9 (diff) | |
download | sonarqube-db2c24f023c8ab6dfbd473269086c61847720dea.tar.gz sonarqube-db2c24f023c8ab6dfbd473269086c61847720dea.zip |
SONAR-1830 new metric type 'rating'
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()); } |