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-maven-plugin | |
parent | fe9e4f3eea867948e25642c24d0ff376907a3f2a (diff) | |
download | sonarqube-01dd8cde2c85c6f2c87eb9798fd2cc6020302ed3.tar.gz sonarqube-01dd8cde2c85c6f2c87eb9798fd2cc6020302ed3.zip |
Remove warnings
Diffstat (limited to 'sonar-maven-plugin')
-rw-r--r-- | sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java b/sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java index 29200ffb1a0..37fcb3896f9 100644 --- a/sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java +++ b/sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java @@ -19,6 +19,7 @@ */ package org.sonar.maven; +import com.google.common.collect.Maps; import org.apache.maven.artifact.factory.ArtifactFactory; import org.apache.maven.artifact.metadata.ArtifactMetadataSource; import org.apache.maven.artifact.repository.ArtifactRepository; @@ -40,8 +41,6 @@ import org.sonar.batch.bootstrapper.Batch; import org.sonar.batch.bootstrapper.EnvironmentInformation; import org.sonar.batch.bootstrapper.LoggingConfiguration; -import java.util.Map; - /** * @goal sonar * @aggregator @@ -152,7 +151,7 @@ public final class SonarMojo extends AbstractMojo { } private void configureLogging(LoggingConfiguration logging) { - logging.setProperties((Map) session.getExecutionProperties()); + logging.setProperties(Maps.fromProperties(session.getExecutionProperties())); logging.setFormat(LoggingConfiguration.FORMAT_MAVEN); if (getLog().isDebugEnabled()) { logging.setVerbose(true); |