diff options
author | David Gageot <david@gageot.net> | 2012-04-27 16:57:37 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-04-27 16:58:52 +0200 |
commit | 328e826a6a151128783ee7a3939e206202c6a990 (patch) | |
tree | ae06c9d7a563988d0754ecd51490e58617405e80 | |
parent | 12607cffa7f6389e0bc6e921a6e48cb3c5da3c47 (diff) | |
download | sonarqube-328e826a6a151128783ee7a3939e206202c6a990.tar.gz sonarqube-328e826a6a151128783ee7a3939e206202c6a990.zip |
Code cleaning : Unused code
5 files changed, 11 insertions, 11 deletions
diff --git a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/sensors/ReviewsMeasuresDecoratorTest.java b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/sensors/ReviewsMeasuresDecoratorTest.java index 49cd0dc85ba..102fd8b85b5 100644 --- a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/sensors/ReviewsMeasuresDecoratorTest.java +++ b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/sensors/ReviewsMeasuresDecoratorTest.java @@ -43,7 +43,6 @@ import org.sonar.core.review.ReviewDto; import java.util.Arrays; import java.util.Date; -import java.util.List; import java.util.Map; import static org.hamcrest.Matchers.is; @@ -175,13 +174,13 @@ public class ReviewsMeasuresDecoratorTest { verify(context).saveMeasure(argThat(new IsVariationMeasure(CoreMetrics.NEW_UNREVIEWED_VIOLATIONS, 1.0, 3.0))); } - private List<ReviewDto> createListOf10Reviews() { - List<ReviewDto> reviews = Lists.newArrayList(); - for (int i = 1; i < 11; i++) { - reviews.add(new ReviewDto().setViolationPermanentId(i)); - } - return reviews; - } + // private List<ReviewDto> createListOf10Reviews() { + // List<ReviewDto> reviews = Lists.newArrayList(); + // for (int i = 1; i < 11; i++) { + // reviews.add(new ReviewDto().setViolationPermanentId(i)); + // } + // return reviews; + // } // // private BaseMatcher<ReviewQuery> openReviewQueryMatcher() { // return new BaseMatcher<ReviewQuery>() { diff --git a/sonar-batch/src/test/java/org/sonar/batch/bootstrap/BootstrapModuleTest.java b/sonar-batch/src/test/java/org/sonar/batch/bootstrap/BootstrapModuleTest.java index 70e4c88f99f..1f7004956d8 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/bootstrap/BootstrapModuleTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/bootstrap/BootstrapModuleTest.java @@ -46,7 +46,7 @@ public class BootstrapModuleTest { BootstrapModule module = new BootstrapModule(projectReactor, null, MyMavenPluginExecutor.class); assertThat(module.isMavenPluginExecutorRegistered(), is(true)); - module = new BootstrapModule(projectReactor, null); + module = new BootstrapModule(projectReactor); assertThat(module.isMavenPluginExecutorRegistered(), is(false)); } } diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/batch/BatchExtensionDictionnaryTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/batch/BatchExtensionDictionnaryTest.java index fe4feda7d5e..0b6eedbddf8 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/batch/BatchExtensionDictionnaryTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/batch/BatchExtensionDictionnaryTest.java @@ -196,6 +196,7 @@ public class BatchExtensionDictionnaryTest { BatchExtensionDictionnary selector = newSelector(); BatchExtension wrong = new BatchExtension() { @DependsUpon + @SuppressWarnings("unused") private Object foo() { return "foo"; } diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/profiles/ProfileExporterTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/profiles/ProfileExporterTest.java index 38399885151..2fae0601df5 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/profiles/ProfileExporterTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/profiles/ProfileExporterTest.java @@ -52,7 +52,7 @@ public class ProfileExporterTest { assertThat(exporter.getSupportedLanguages().length, is(0)); - exporter.setSupportedLanguages(null); + exporter.setSupportedLanguages(); assertThat(exporter.getSupportedLanguages().length, is(0)); } } diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/profiles/ProfileImporterTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/profiles/ProfileImporterTest.java index e4e745bfc7a..4e618baf1e1 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/profiles/ProfileImporterTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/profiles/ProfileImporterTest.java @@ -55,7 +55,7 @@ public class ProfileImporterTest { assertThat(importer.getSupportedLanguages().length, is(0)); - importer.setSupportedLanguages(null); + importer.setSupportedLanguages(); assertThat(importer.getSupportedLanguages().length, is(0)); } } |