diff options
author | David Gageot <david@gageot.net> | 2012-05-23 22:27:10 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-05-23 22:34:46 +0200 |
commit | 01dd8cde2c85c6f2c87eb9798fd2cc6020302ed3 (patch) | |
tree | 301788914ab32e4a2a972716c0ed8db8ac844294 /sonar-batch | |
parent | fe9e4f3eea867948e25642c24d0ff376907a3f2a (diff) | |
download | sonarqube-01dd8cde2c85c6f2c87eb9798fd2cc6020302ed3.tar.gz sonarqube-01dd8cde2c85c6f2c87eb9798fd2cc6020302ed3.zip |
Remove warnings
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Batch.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Batch.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Batch.java index b5804550322..9deee34e35e 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Batch.java +++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Batch.java @@ -20,14 +20,14 @@ package org.sonar.batch.bootstrapper; import com.google.common.collect.Lists; +import com.google.common.collect.Maps; import org.sonar.api.batch.bootstrap.ProjectReactor; import org.sonar.batch.bootstrap.BootstrapModule; import org.sonar.batch.bootstrap.Module; import org.sonar.core.PicoUtils; -import java.util.Arrays; +import java.util.Collections; import java.util.List; -import java.util.Map; /** * Entry point for batch bootstrappers. @@ -46,7 +46,7 @@ public final class Batch { components.add(builder.environment); projectReactor = builder.projectReactor; if (builder.isEnableLoggingConfiguration()) { - logging = LoggingConfiguration.create().setProperties((Map) projectReactor.getRoot().getProperties()); + logging = LoggingConfiguration.create().setProperties(Maps.fromProperties(projectReactor.getRoot().getProperties())); } } @@ -89,7 +89,7 @@ public final class Batch { public static final class Builder { private ProjectReactor projectReactor; private EnvironmentInformation environment; - private List components = Lists.newArrayList(); + private List<Object> components = Lists.newArrayList(); private boolean enableLoggingConfiguration = true; private Builder() { @@ -105,13 +105,13 @@ public final class Batch { return this; } - public Builder setComponents(List l) { + public Builder setComponents(List<Object> l) { this.components = l; return this; } public Builder addComponents(Object... components) { - this.components.addAll(Arrays.asList(components)); + Collections.addAll(this.components, components); return this; } |