aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-04-27 16:57:37 +0200
committerDavid Gageot <david@gageot.net>2012-04-27 16:58:52 +0200
commit328e826a6a151128783ee7a3939e206202c6a990 (patch)
treeae06c9d7a563988d0754ecd51490e58617405e80 /sonar-plugin-api
parent12607cffa7f6389e0bc6e921a6e48cb3c5da3c47 (diff)
downloadsonarqube-328e826a6a151128783ee7a3939e206202c6a990.tar.gz
sonarqube-328e826a6a151128783ee7a3939e206202c6a990.zip
Code cleaning : Unused code
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/batch/BatchExtensionDictionnaryTest.java1
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/profiles/ProfileExporterTest.java2
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/profiles/ProfileImporterTest.java2
3 files changed, 3 insertions, 2 deletions
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));
}
}