diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2018-11-09 10:33:39 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2019-01-16 09:42:58 +0100 |
commit | 8dc6b7101fc61cea51a725d02bd23a8a10eeda41 (patch) | |
tree | b5620e57c869968573d229f8f0eca3dbefcc8ecd | |
parent | 2505fcc145e83f53047319644bcd2aa948e9ff9c (diff) | |
download | sonarqube-8dc6b7101fc61cea51a725d02bd23a8a10eeda41.tar.gz sonarqube-8dc6b7101fc61cea51a725d02bd23a8a10eeda41.zip |
SONAR-11459 Deprecate componentKeys in IssueFilter
3 files changed, 9 insertions, 3 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 5c62b051bbe..9c9e3375898 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 @@ -31,6 +31,10 @@ import org.sonar.api.rule.RuleKey; @ThreadSafe public interface FilterableIssue { + /** + * @deprecated since 7.6 filtering issue should not depend on the key + */ + @Deprecated String componentKey(); RuleKey ruleKey(); @@ -59,10 +63,14 @@ public interface FilterableIssue { Double gap(); /** - * @deprecated since 6.6 useless + * @deprecated since 6.6 useless since creation date is computed on server side */ @Deprecated Date creationDate(); + /** + * @deprecated since 7.6 filtering issue should not depend on the key + */ + @Deprecated String projectKey(); } 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 25987e008f6..eea90b73454 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 @@ -21,7 +21,6 @@ package org.sonar.api.scan.issue.filter; import javax.annotation.concurrent.ThreadSafe; - import org.sonar.api.ExtensionPoint; import org.sonar.api.batch.ScannerSide; import org.sonarsource.api.sonarlint.SonarLintSide; diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/cpd/CpdMediumTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/cpd/CpdMediumTest.java index 22e7928bb36..52462d5d567 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/cpd/CpdMediumTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/cpd/CpdMediumTest.java @@ -36,7 +36,6 @@ import org.sonar.scanner.mediumtest.ScannerMediumTester; import org.sonar.scanner.mediumtest.TaskResult; import org.sonar.scanner.protocol.output.ScannerReport; import org.sonar.xoo.XooPlugin; -import org.sonar.xoo.lang.CpdTokenizerSensor; import org.sonar.xoo.rule.XooRulesDefinition; import static org.assertj.core.api.Assertions.assertThat; |