From 328e826a6a151128783ee7a3939e206202c6a990 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Fri, 27 Apr 2012 16:57:37 +0200 Subject: Code cleaning : Unused code --- .../test/java/org/sonar/api/batch/BatchExtensionDictionnaryTest.java | 1 + .../src/test/java/org/sonar/api/profiles/ProfileExporterTest.java | 2 +- .../src/test/java/org/sonar/api/profiles/ProfileImporterTest.java | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'sonar-plugin-api') 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)); } } -- cgit v1.2.3