From aec83bafc952d4786fa9552fb8749c9efce517b5 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Fri, 9 Nov 2018 11:19:38 +0100 Subject: SONAR-11465 Introduce a new annotation for project level extensions and deprecate issue filters --- sonar-plugin-api/src/main/java/org/sonar/api/batch/ScannerSide.java | 2 ++ sonar-plugin-api/src/main/java/org/sonar/api/batch/package-info.java | 2 +- .../src/main/java/org/sonar/api/scan/issue/filter/FilterableIssue.java | 2 ++ .../src/main/java/org/sonar/api/scan/issue/filter/IssueFilter.java | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) (limited to 'sonar-plugin-api') diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/ScannerSide.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/ScannerSide.java index 9158e4f4fb5..e69ce941a98 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/ScannerSide.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/ScannerSide.java @@ -44,7 +44,9 @@ import java.lang.annotation.Target; * * * @since 6.0 + * @deprecated since 7.6 use {@link org.sonar.api.scanner.ScannerSide} that will move the component to the project container */ +@Deprecated @Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/package-info.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/package-info.java index f9e75219d24..28d70972fa3 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/package-info.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/package-info.java @@ -18,4 +18,4 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ @javax.annotation.ParametersAreNonnullByDefault -package org.sonar.api.batch.sensor; +package org.sonar.api.batch; 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 9c9e3375898..09f7a2f37e1 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 @@ -27,8 +27,10 @@ import org.sonar.api.rule.RuleKey; /** * @since 5.3 + * @deprecated since 7.6 */ @ThreadSafe +@Deprecated public interface FilterableIssue { /** diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/scan/issue/filter/IssueFilter.java b/sonar-plugin-api/src/main/java/org/sonar/api/scan/issue/filter/IssueFilter.java index eea90b73454..0db66a578d3 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/scan/issue/filter/IssueFilter.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/scan/issue/filter/IssueFilter.java @@ -32,7 +32,9 @@ import org.sonarsource.api.sonarlint.SonarLintSide; @ThreadSafe /** * @since 5.3 + * @deprecated since 7.6 */ +@Deprecated public interface IssueFilter { /** -- cgit v1.2.3