]> source.dussan.org Git - sonarqube.git/commitdiff
Fix rule key in issue callback
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Tue, 22 Sep 2015 13:31:03 +0000 (15:31 +0200)
committerDuarte Meneses <duarte.meneses@sonarsource.com>
Tue, 22 Sep 2015 13:31:05 +0000 (15:31 +0200)
sonar-batch/src/main/java/org/sonar/batch/issue/DefaultIssueCallback.java

index 05caaec7f3c306d258716829bee929ff43048e15..8f7342e05e5848beda055e3187bee2dccf2e6206 100644 (file)
@@ -81,7 +81,7 @@ public class DefaultIssueCallback implements IssueCallback {
       newIssue.setMessage(issue.getMessage());
       newIssue.setNew(issue.isNew());
       newIssue.setResolution(issue.resolution());
-      newIssue.setRuleKey(issue.getRuleKey().rule());
+      newIssue.setRuleKey(issue.getRuleKey().toString());
       newIssue.setRuleName(getRuleName(issue.getRuleKey()));
       newIssue.setSeverity(issue.severity());
       newIssue.setStatus(issue.status());