aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-deprecated
diff options
context:
space:
mode:
authorGodin <mandrikov@gmail.com>2010-12-07 17:42:40 +0000
committerGodin <mandrikov@gmail.com>2010-12-07 17:42:40 +0000
commit7fc9f662522fdd85f71b13e307f38a087a86f1ac (patch)
treec045e45badb9f0790bdfdf184b1d46c7ad1f5845 /sonar-deprecated
parent7b14f36d5afc4b1a1730307d2dd2b62700b16b59 (diff)
downloadsonarqube-7fc9f662522fdd85f71b13e307f38a087a86f1ac.tar.gz
sonarqube-7fc9f662522fdd85f71b13e307f38a087a86f1ac.zip
SONAR-1829: Use severity instead of priority
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
+}