aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2015-09-22 15:31:03 +0200
committerDuarte Meneses <duarte.meneses@sonarsource.com>2015-09-22 15:31:05 +0200
commit021fc77537a86eb9d39bff6fa02e6a662b5eaa15 (patch)
tree5be928fcec17c57340150428bf68cdc9e89310b3 /sonar-batch
parent004f17f3eaca6be071997aca326f3031d5ccfacf (diff)
downloadsonarqube-021fc77537a86eb9d39bff6fa02e6a662b5eaa15.tar.gz
sonarqube-021fc77537a86eb9d39bff6fa02e6a662b5eaa15.zip
Fix rule key in issue callback
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/issue/DefaultIssueCallback.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/issue/DefaultIssueCallback.java b/sonar-batch/src/main/java/org/sonar/batch/issue/DefaultIssueCallback.java
index 05caaec7f3c..8f7342e05e5 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/issue/DefaultIssueCallback.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/issue/DefaultIssueCallback.java
@@ -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());