From 7664b08a9d915123fecd44c42632d9c3522fcff1 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Mon, 15 Dec 2014 10:46:28 +0100 Subject: [PATCH] Remove too early deprecations --- .../src/main/java/org/sonar/api/batch/SonarIndex.java | 1 - .../src/main/java/org/sonar/api/test/MutableTestCase.java | 6 ------ .../src/main/java/org/sonar/api/test/MutableTestPlan.java | 5 ----- .../src/main/java/org/sonar/api/test/MutableTestable.java | 5 ----- .../src/main/java/org/sonar/api/test/TestCase.java | 4 ---- .../src/main/java/org/sonar/api/test/TestPlan.java | 4 ---- .../src/main/java/org/sonar/api/test/Testable.java | 5 ----- 7 files changed, 30 deletions(-) diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/SonarIndex.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/SonarIndex.java index 54db782b805..db50719f48f 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/SonarIndex.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/SonarIndex.java @@ -20,7 +20,6 @@ package org.sonar.api.batch; import org.sonar.api.batch.fs.InputFile; -import org.sonar.api.batch.sensor.SensorContext; import org.sonar.api.design.Dependency; import org.sonar.api.measures.Measure; import org.sonar.api.measures.MeasuresFilter; diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestCase.java b/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestCase.java index dfecc85f0a4..a656a76bbb1 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestCase.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestCase.java @@ -19,16 +19,10 @@ */ package org.sonar.api.test; -import org.sonar.api.batch.sensor.SensorContext; - import javax.annotation.Nullable; import java.util.List; -/** - * @deprecated since 5.0 use {@link SensorContext#testPlanBuilder(org.sonar.api.batch.fs.InputFile)} - */ -@Deprecated public interface MutableTestCase extends TestCase { MutableTestCase setStatus(@Nullable Status s); diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestPlan.java b/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestPlan.java index 7a1f9c8cd24..22bccb8d9fb 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestPlan.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestPlan.java @@ -19,13 +19,8 @@ */ package org.sonar.api.test; -import org.sonar.api.batch.sensor.SensorContext; import org.sonar.api.component.MutablePerspective; -/** - * @deprecated since 5.0 use {@link SensorContext#testPlanBuilder(org.sonar.api.batch.fs.InputFile)} - */ -@Deprecated public interface MutableTestPlan extends TestPlan, MutablePerspective { MutableTestCase addTestCase(String name); diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestable.java b/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestable.java index 2d91cb885e9..be9c30892b1 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestable.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/test/MutableTestable.java @@ -19,13 +19,8 @@ */ package org.sonar.api.test; -import org.sonar.api.batch.sensor.SensorContext; import org.sonar.api.component.MutablePerspective; -/** - * @deprecated since 5.0 use {@link SensorContext#testPlanBuilder(org.sonar.api.batch.fs.InputFile)} - */ -@Deprecated public interface MutableTestable extends Testable, MutablePerspective { } diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/test/TestCase.java b/sonar-plugin-api/src/main/java/org/sonar/api/test/TestCase.java index 15dd571699e..abe7025a02a 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/test/TestCase.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/test/TestCase.java @@ -21,10 +21,6 @@ package org.sonar.api.test; import javax.annotation.Nullable; -/** - * @deprecated since 5.0 see {@link org.sonar.api.batch.sensor.test.TestCaseExecution} - */ -@Deprecated public interface TestCase { enum Status { OK, FAILURE, ERROR, SKIPPED; diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/test/TestPlan.java b/sonar-plugin-api/src/main/java/org/sonar/api/test/TestPlan.java index affb39bfe5e..dbb864426f5 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/test/TestPlan.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/test/TestPlan.java @@ -21,10 +21,6 @@ package org.sonar.api.test; import org.sonar.api.component.Perspective; -/** - * @deprecated since 5.0 - */ -@Deprecated public interface TestPlan extends Perspective { Iterable testCases(); diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/test/Testable.java b/sonar-plugin-api/src/main/java/org/sonar/api/test/Testable.java index 1857c49642b..7091b6bee86 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/test/Testable.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/test/Testable.java @@ -19,17 +19,12 @@ */ package org.sonar.api.test; -import org.sonar.api.batch.sensor.SensorContext; import org.sonar.api.component.Perspective; import java.util.List; import java.util.Map; import java.util.SortedSet; -/** - * @deprecated since 5.0 use {@link SensorContext#testPlanBuilder(org.sonar.api.batch.fs.InputFile)} - */ -@Deprecated public interface Testable extends Perspective { List testCases(); -- 2.39.5