]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-11026 Deprecate ProjectIssues and AnalysisMode
authorJulien HENRY <julien.henry@sonarsource.com>
Mon, 16 Jul 2018 16:15:45 +0000 (18:15 +0200)
committerSonarTech <sonartech@sonarsource.com>
Tue, 17 Jul 2018 18:21:22 +0000 (20:21 +0200)
sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java
sonar-plugin-api/src/main/java/org/sonar/api/batch/AnalysisMode.java
sonar-plugin-api/src/main/java/org/sonar/api/batch/postjob/PostJobContext.java
sonar-plugin-api/src/main/java/org/sonar/api/issue/ProjectIssues.java

index 3b225c59e771ff1a5bd05f5765f6a68a2bbb068b..3443c30c57e0839eae34019323fdbf13b5af5f75 100644 (file)
@@ -393,12 +393,16 @@ public interface CoreProperties {
 
   /**
    * @since 4.0
+   * @deprecated since 7.3 preview mode deprecated since 6.6
    */
+  @Deprecated
   String ANALYSIS_MODE_PREVIEW = "preview";
 
   /**
    * @since 5.2
+   * @deprecated since 7.3 issues mode deprecated since 6.6
    */
+  @Deprecated
   String ANALYSIS_MODE_ISSUES = "issues";
 
   /**
@@ -406,13 +410,6 @@ public interface CoreProperties {
    */
   String ANALYSIS_MODE_PUBLISH = "publish";
 
-  /**
-   * @since 4.0
-   * @deprecated since 5.2
-   */
-  @Deprecated
-  String ANALYSIS_MODE_INCREMENTAL = "incremental";
-
   /**
    * @since 4.0
    */
index f997f9a08bc93f0cb176dce21325668d57a0674d..7c0ef210f6d01d0f0aa29919efa9a77cad2f203b 100644 (file)
@@ -24,9 +24,11 @@ import org.sonarsource.api.sonarlint.SonarLintSide;
 /**
  * Use this component to find the current running mode.
  * @since 5.1
+ * @deprecated since 7.3 preview mode deprecated since 6.6
  */
 @ScannerSide
 @SonarLintSide
+@Deprecated
 public interface AnalysisMode {
   boolean isPreview();
 
index b6ca0e7113ca43339dbab3887678db0d8270bcda..1da8f087c3bf455b4549b96db2b4446c1249e107 100644 (file)
@@ -42,6 +42,10 @@ public interface PostJobContext {
    */
   Configuration config();
 
+  /**
+   * @deprecated since 7.3 preview mode deprecated since 6.6
+   */
+  @Deprecated
   AnalysisMode analysisMode();
 
   // ----------- Only available in preview mode --------------
@@ -49,13 +53,17 @@ public interface PostJobContext {
   /**
    * All the unresolved issues of the project, including the issues reported by end-users. Only available in preview/issues mode.
    * @throw {@link UnsupportedOperationException} if not in preview/issues mode. To test the mode you can use {@link #analysisMode()}.
+   * @deprecated since 7.3 the preview/issues mode is deprecated since 6.7
    */
+  @Deprecated
   Iterable<PostJobIssue> issues();
 
   /**
    * All the issues of this project that have been marked as resolved during this scan. Only available in preview/issues mode.
    * @throw {@link UnsupportedOperationException} if not in preview mode. To test the mode you can use {@link #analysisMode()}.
+   * @deprecated since 7.3 the preview/issues mode is deprecated since 6.7
    */
+  @Deprecated
   Iterable<PostJobIssue> resolvedIssues();
 
 }
index 4afb9cf129bb70b8cb48029e06c2c18d78cb8759..d1c804778b25743c3f79e1d957a76ddce3a42247 100644 (file)
@@ -28,9 +28,11 @@ import static org.sonar.api.batch.InstantiationStrategy.PER_BATCH;
  * Used by batch components to get all project issues.
  *
  * @since 4.0
+ * @deprecated since 7.3 preview mode is deprecated since 6.6
  */
 @InstantiationStrategy(PER_BATCH)
 @ScannerSide
+@Deprecated
 public interface ProjectIssues {
 
   /**