summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2015-10-05 15:57:24 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2015-10-05 18:44:43 +0200
commit9bd6da57d295bec4f8d22d32c28cefd0032bceaa (patch)
treeeb0272593943e69c3321aefc5d01de2474fd51f7
parentc5fa663836dce3902fe66cdc650b5260f36131c3 (diff)
downloadsonarqube-9bd6da57d295bec4f8d22d32c28cefd0032bceaa.tar.gz
sonarqube-9bd6da57d295bec4f8d22d32c28cefd0032bceaa.zip
Issue attributes are supported
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/issue/DeprecatedIssueBuilderWrapper.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/issue/DeprecatedIssueBuilderWrapper.java b/sonar-batch/src/main/java/org/sonar/batch/issue/DeprecatedIssueBuilderWrapper.java
index 7bfbf6d81d2..85f05374a3e 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/issue/DeprecatedIssueBuilderWrapper.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/issue/DeprecatedIssueBuilderWrapper.java
@@ -108,7 +108,8 @@ public class DeprecatedIssueBuilderWrapper implements Issuable.IssueBuilder {
@Override
public IssueBuilder attribute(String key, String value) {
- throw new UnsupportedOperationException("Unused");
+ newIssue.addAttribute(key, value);
+ return this;
}
@Override