diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2018-07-05 18:26:06 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2018-07-09 10:39:33 +0200 |
commit | 7945610fd5eb08165568cbcdf74adb45e8b2fd83 (patch) | |
tree | 6cc0e832d4bce6e1fc76ec3b1018c7b2e2f27879 /server/sonar-server-common/src | |
parent | deafa95ac4fe407e22e5ad56ecdbbb2e0105e24a (diff) | |
download | sonarqube-7945610fd5eb08165568cbcdf74adb45e8b2fd83.tar.gz sonarqube-7945610fd5eb08165568cbcdf74adb45e8b2fd83.zip |
fix varargs and unchecked called warnings
Diffstat (limited to 'server/sonar-server-common/src')
-rw-r--r-- | server/sonar-server-common/src/main/java/org/sonar/server/plugins/ServerExtensionInstaller.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/plugins/ServerExtensionInstaller.java b/server/sonar-server-common/src/main/java/org/sonar/server/plugins/ServerExtensionInstaller.java index 16bcba75ca9..086b2d22adc 100644 --- a/server/sonar-server-common/src/main/java/org/sonar/server/plugins/ServerExtensionInstaller.java +++ b/server/sonar-server-common/src/main/java/org/sonar/server/plugins/ServerExtensionInstaller.java @@ -23,6 +23,7 @@ import com.google.common.collect.ArrayListMultimap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.ListMultimap; import java.lang.annotation.Annotation; +import java.util.Collection; import java.util.Map; import java.util.Set; import org.sonar.api.ExtensionProvider; @@ -48,7 +49,7 @@ public abstract class ServerExtensionInstaller { private final Set<Class<? extends Annotation>> supportedAnnotationTypes; protected ServerExtensionInstaller(SonarRuntime sonarRuntime, PluginRepository pluginRepository, - Class<? extends Annotation>... supportedAnnotationTypes) { + Collection<Class<? extends Annotation>> supportedAnnotationTypes) { requireNonNull(supportedAnnotationTypes, "At least one supported annotation type must be specified"); this.sonarRuntime = sonarRuntime; this.pluginRepository = pluginRepository; |