]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-11459 Deprecate componentKeys in IssueFilter
authorJulien HENRY <julien.henry@sonarsource.com>
Fri, 9 Nov 2018 09:33:39 +0000 (10:33 +0100)
committersonartech <sonartech@sonarsource.com>
Wed, 16 Jan 2019 08:42:58 +0000 (09:42 +0100)
sonar-plugin-api/src/main/java/org/sonar/api/scan/issue/filter/FilterableIssue.java
sonar-plugin-api/src/main/java/org/sonar/api/scan/issue/filter/IssueFilter.java
sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/cpd/CpdMediumTest.java

index 5c62b051bbe8eb5ccd2eaa4c2a297121480fa0dd..9c9e337589858c2bd6ea15d895826f1f6555189e 100644 (file)
@@ -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();
 }
index 25987e008f615b6292c9297309c89045039b9b27..eea90b73454f3af1ca8d87bafe7378cc7ab64d71 100644 (file)
@@ -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;
index 22e7928bb363779da176dc91306959d075f091d4..52462d5d567128b8e2dd795750fc979247807b37 100644 (file)
@@ -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;