aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2015-10-06 20:43:53 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2015-10-07 00:02:09 +0200
commitd999545733b0f53d9a726c5c83256cc8e881dd83 (patch)
tree5f90ca747329974d260d471f94514f41fb4cb486 /sonar-batch
parent42b27a86a33b63b0f72ff37c289ca7e41473ed7a (diff)
downloadsonarqube-d999545733b0f53d9a726c5c83256cc8e881dd83.tar.gz
sonarqube-d999545733b0f53d9a726c5c83256cc8e881dd83.zip
Create a shortcut to add secondary issue locations
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/issue/DeprecatedIssueBuilderWrapper.java6
1 files changed, 6 insertions, 0 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 85f05374a3e..acc5d3343b4 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
@@ -84,6 +84,12 @@ public class DeprecatedIssueBuilderWrapper implements Issuable.IssueBuilder {
}
@Override
+ public IssueBuilder addLocation(NewIssueLocation secondaryLocation) {
+ newIssue.addLocation(secondaryLocation);
+ return this;
+ }
+
+ @Override
public IssueBuilder addFlow(Iterable<NewIssueLocation> flowLocations) {
newIssue.addFlow(flowLocations);
return this;