diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2014-07-21 10:43:35 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2014-07-21 10:48:59 +0200 |
commit | 81b58c21b42883b0542c77ed7e29baf53869e39b (patch) | |
tree | 043856d5c6e377ab2e686aa813bdfbb62862972c | |
parent | 9a3ab999c83b8a1fa75453a6ffd25d9ee8a10851 (diff) | |
download | sonarqube-81b58c21b42883b0542c77ed7e29baf53869e39b.tar.gz sonarqube-81b58c21b42883b0542c77ed7e29baf53869e39b.zip |
SONAR-5417 Fix issue with percent metric best value
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/scan/measure/DeprecatedMetricFinder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/scan/measure/DeprecatedMetricFinder.java b/sonar-batch/src/main/java/org/sonar/batch/scan/measure/DeprecatedMetricFinder.java index 495eaef2e56..b3e3f9cac18 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/scan/measure/DeprecatedMetricFinder.java +++ b/sonar-batch/src/main/java/org/sonar/batch/scan/measure/DeprecatedMetricFinder.java @@ -38,9 +38,9 @@ public final class DeprecatedMetricFinder implements MetricFinder { public DeprecatedMetricFinder(ProjectReferentials projectReferentials) { for (org.sonar.batch.protocol.input.Metric metric : projectReferentials.metrics()) { Metric hibernateMetric = new org.sonar.api.measures.Metric.Builder(metric.key(), metric.key(), ValueType.valueOf(metric.valueType())) - .setBestValue(metric.bestValue()) - .setOptimizedBestValue(metric.isOptimizedBestValue()) .create() + .setOptimizedBestValue(metric.isOptimizedBestValue()) + .setBestValue(metric.bestValue()) .setId(metric.id()); metricsByKey.put(metric.key(), hibernateMetric); metricsById.put(metric.id(), new org.sonar.api.measures.Metric.Builder(metric.key(), metric.key(), ValueType.valueOf(metric.valueType())).create().setId(metric.id())); |