diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-02-06 13:44:20 +0100 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2012-02-06 16:27:33 +0100 |
commit | 93a7bc8f307a431f2a1cb82b8401c4fd48042e79 (patch) | |
tree | b2339310da0cb699ff650c637330105ed6031bce /sonar-batch/src | |
parent | ec02a8faea5132013a21349ef75872bbb888a8f4 (diff) | |
download | sonarqube-93a7bc8f307a431f2a1cb82b8401c4fd48042e79.tar.gz sonarqube-93a7bc8f307a431f2a1cb82b8401c4fd48042e79.zip |
Fix some quality flaws
Diffstat (limited to 'sonar-batch/src')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/index/MeasurePersister.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/index/MeasurePersister.java b/sonar-batch/src/main/java/org/sonar/batch/index/MeasurePersister.java index 620519345f0..8552118e54c 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/index/MeasurePersister.java +++ b/sonar-batch/src/main/java/org/sonar/batch/index/MeasurePersister.java @@ -158,7 +158,7 @@ public final class MeasurePersister { } if (measure instanceof RuleMeasure) { RuleMeasure ruleMeasure = (RuleMeasure) measure; - merge.setRulePriority(ruleMeasure.getRulePriority()); + merge.setRulePriority(ruleMeasure.getSeverity()); if (ruleMeasure.getRule() != null) { Rule ruleWithId = ruleFinder.findByKey(ruleMeasure.getRule().getRepositoryKey(), ruleMeasure.getRule().getKey()); if (ruleWithId != null) { |