diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-08-04 15:14:50 +0200 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-08-05 13:40:26 +0200 |
commit | 92ab7df5f6d58a9711cdc00dbaafd0648b22e940 (patch) | |
tree | 4a1101db723ac3d89c734d05b22d034acc1f38fa /sonar-plugin-api | |
parent | 15ec53105ce82aa3d85ad322b0a2cca16cfe7d0b (diff) | |
download | sonarqube-92ab7df5f6d58a9711cdc00dbaafd0648b22e940.tar.gz sonarqube-92ab7df5f6d58a9711cdc00dbaafd0648b22e940.zip |
SONAR-6761 Drop incremental mode
Diffstat (limited to 'sonar-plugin-api')
4 files changed, 3 insertions, 16 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java b/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java index 247b9097e5e..6a11d89fc5b 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java @@ -446,7 +446,7 @@ public interface CoreProperties { * @since 4.0 */ String ANALYSIS_MODE_PREVIEW = "preview"; - + /** * @since 5.2 */ @@ -454,7 +454,9 @@ public interface CoreProperties { /** * @since 4.0 + * @deprecated since 5.2 */ + @Deprecated String ANALYSIS_MODE_INCREMENTAL = "incremental"; /** diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/AnalysisMode.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/AnalysisMode.java index 37734df0917..b3675a7d319 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/AnalysisMode.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/AnalysisMode.java @@ -28,8 +28,6 @@ public interface AnalysisMode { boolean isPreview(); - boolean isIncremental(); - boolean isQuick(); } diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/internal/SensorContextTester.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/internal/SensorContextTester.java index 0b506e112b4..85720e2b2d8 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/internal/SensorContextTester.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/internal/SensorContextTester.java @@ -216,20 +216,10 @@ public class SensorContextTester implements SensorContext { } public static class MockAnalysisMode implements AnalysisMode { - private boolean isIncremental = false; private boolean isPreview = false; private boolean isSingle = false; @Override - public boolean isIncremental() { - return isIncremental; - } - - public void setIncremental(boolean value) { - this.isIncremental = value; - } - - @Override public boolean isPreview() { return isPreview; } diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/batch/sensor/internal/SensorContextTesterTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/batch/sensor/internal/SensorContextTesterTest.java index 35ad51f3c40..493547b6698 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/batch/sensor/internal/SensorContextTesterTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/batch/sensor/internal/SensorContextTesterTest.java @@ -77,10 +77,7 @@ public class SensorContextTesterTest { @Test public void testAnalysisMode() { - assertThat(tester.analysisMode().isIncremental()).isFalse(); assertThat(tester.analysisMode().isPreview()).isFalse(); - tester.analysisMode().setIncremental(true); - assertThat(tester.analysisMode().isIncremental()).isTrue(); tester.analysisMode().setPreview(true); assertThat(tester.analysisMode().isPreview()).isTrue(); } |