diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2018-06-06 15:36:48 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-06-11 20:20:48 +0200 |
commit | 65d171d1893dbeb55282254dd19c4461776fae1d (patch) | |
tree | 8bcd1f8729cd5d314be88479807ec4b84bf8c9dc /sonar-plugin-api | |
parent | 17968cf78d5f505c1ce3fb3ae5c8be6bf22684cd (diff) | |
download | sonarqube-65d171d1893dbeb55282254dd19c4461776fae1d.tar.gz sonarqube-65d171d1893dbeb55282254dd19c4461776fae1d.zip |
SONAR-10201 Expose issue precise location in the FilterableIssue API
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/scan/issue/filter/FilterableIssue.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/scan/issue/filter/FilterableIssue.java b/sonar-plugin-api/src/main/java/org/sonar/api/scan/issue/filter/FilterableIssue.java index 5192d27352e..c5bc91d5815 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/scan/issue/filter/FilterableIssue.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/scan/issue/filter/FilterableIssue.java @@ -22,6 +22,7 @@ package org.sonar.api.scan.issue.filter; import java.util.Date; import javax.annotation.CheckForNull; import javax.annotation.concurrent.ThreadSafe; +import org.sonar.api.batch.fs.TextRange; import org.sonar.api.rule.RuleKey; /** @@ -38,10 +39,21 @@ public interface FilterableIssue { String message(); + /** + * @deprecated since 7.2. Use {@link #textRange() instead}. + */ + + @Deprecated @CheckForNull Integer line(); /** + * @since 7.2 + */ + @CheckForNull + TextRange textRange(); + + /** * @deprecated since 5.5 use {@link #gap()} */ @Deprecated |