aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-07-16 15:37:14 +0200
committerDavid Gageot <david@gageot.net>2012-07-16 15:37:14 +0200
commit1ae9871a6275f358945da6088084bbd3977de8b6 (patch)
tree2c39e15e918195d9abc39bdbbcfe43807264ccaf /sonar-plugin-api/src
parente5da76d0f6a03b28da352bcc5987392443ea3144 (diff)
downloadsonarqube-1ae9871a6275f358945da6088084bbd3977de8b6.tar.gz
sonarqube-1ae9871a6275f358945da6088084bbd3977de8b6.zip
Remove warning
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/BatchExtensionDictionnary.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/BatchExtensionDictionnary.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/BatchExtensionDictionnary.java
index 846cfa31a01..ef295033bd3 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/BatchExtensionDictionnary.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/BatchExtensionDictionnary.java
@@ -204,8 +204,8 @@ public class BatchExtensionDictionnary {
Object result = method.invoke(extension);
if (result != null) {
//TODO add arrays/collections of objects/classes
- if (result instanceof Class) {
- results.addAll(componentContainer.getComponentsByType((Class) result));
+ if (result instanceof Class<?>) {
+ results.addAll(componentContainer.getComponentsByType((Class<?>) result));
} else if (result instanceof Collection<?>) {
results.addAll((Collection<?>) result);