diff options
author | David Gageot <david@gageot.net> | 2012-07-16 15:37:14 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-07-16 15:37:14 +0200 |
commit | 1ae9871a6275f358945da6088084bbd3977de8b6 (patch) | |
tree | 2c39e15e918195d9abc39bdbbcfe43807264ccaf /sonar-plugin-api/src | |
parent | e5da76d0f6a03b28da352bcc5987392443ea3144 (diff) | |
download | sonarqube-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.java | 4 |
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); |