aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-deprecated
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-deprecated')
-rw-r--r--sonar-deprecated/src/main/java/org/sonar/api/checks/checkers/MessageDispatcher.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-deprecated/src/main/java/org/sonar/api/checks/checkers/MessageDispatcher.java b/sonar-deprecated/src/main/java/org/sonar/api/checks/checkers/MessageDispatcher.java
index 47c48f28a66..5885b2f5035 100644
--- a/sonar-deprecated/src/main/java/org/sonar/api/checks/checkers/MessageDispatcher.java
+++ b/sonar-deprecated/src/main/java/org/sonar/api/checks/checkers/MessageDispatcher.java
@@ -99,7 +99,7 @@ public class MessageDispatcher {
Violation violation = Violation.create(new Rule(check.getRepositoryKey(), check.getTemplateKey()), resource);
violation.setLineId(message.getLine());
violation.setMessage(message.getText(Locale.ENGLISH));
- violation.setPriority(RulePriority.fromCheckPriority(check.getPriority()));
+ violation.setSeverity(RulePriority.fromCheckPriority(check.getPriority()));
context.saveViolation(violation);
}
@@ -108,4 +108,4 @@ public class MessageDispatcher {
checksByChecker.clear();
}
-} \ No newline at end of file
+}