From 93a7bc8f307a431f2a1cb82b8401c4fd48042e79 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 6 Feb 2012 13:44:20 +0100 Subject: Fix some quality flaws --- sonar-batch/src/main/java/org/sonar/batch/index/MeasurePersister.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sonar-batch/src') 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) { -- cgit v1.2.3