diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2015-06-08 16:40:48 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2015-07-23 13:56:46 +0200 |
commit | 056b4bdc63c2ef126d9f9d2e0526f60be930cb81 (patch) | |
tree | 197ba8a832ab132a2e95c86bebdb1e61576c5e98 /sonar-core | |
parent | db4af09e8b2c1f44f25a689c3165f5f6d8c01126 (diff) | |
download | sonarqube-056b4bdc63c2ef126d9f9d2e0526f60be930cb81.tar.gz sonarqube-056b4bdc63c2ef126d9f9d2e0526f60be930cb81.zip |
SONAR-4865, SONAR-6052 Improved issue locations
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueBuilder.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueBuilder.java b/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueBuilder.java index 5990eb41146..caa6f3d8663 100644 --- a/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueBuilder.java +++ b/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueBuilder.java @@ -23,7 +23,9 @@ import com.google.common.base.Preconditions; import com.google.common.collect.Maps; import java.util.Map; import javax.annotation.Nullable; +import org.sonar.api.batch.sensor.issue.NewIssueLocation; import org.sonar.api.issue.Issuable; +import org.sonar.api.issue.Issuable.IssueBuilder; import org.sonar.api.issue.Issue; import org.sonar.api.rule.RuleKey; import org.sonar.api.utils.internal.Uuids; @@ -74,6 +76,25 @@ public class DefaultIssueBuilder implements Issuable.IssueBuilder { } @Override + public NewIssueLocation newLocation() { + throw unsupported(); + } + + @Override + public IssueBuilder addExecutionFlow(NewIssueLocation... flow) { + throw unsupported(); + } + + @Override + public IssueBuilder addLocation(NewIssueLocation location) { + throw unsupported(); + } + + private static UnsupportedOperationException unsupported() { + return new UnsupportedOperationException("Not supported for manual issues"); + } + + @Override public DefaultIssueBuilder severity(@Nullable String severity) { this.severity = severity; return this; |