diff options
author | David Gageot <david@gageot.net> | 2012-05-23 08:19:35 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-05-23 08:19:35 +0200 |
commit | d7d95106d0e46906477da9c7f93be156823d7bce (patch) | |
tree | c127910d4f0ded6168c0bbfefdfc59b05593997a /sonar-maven3-plugin | |
parent | 67b5de980cb96e1a500f87db8997fee49ba1556d (diff) | |
download | sonarqube-d7d95106d0e46906477da9c7f93be156823d7bce.tar.gz sonarqube-d7d95106d0e46906477da9c7f93be156823d7bce.zip |
Remove warnings
Diffstat (limited to 'sonar-maven3-plugin')
-rw-r--r-- | sonar-maven3-plugin/src/main/java/org/sonar/maven3/SonarMojo.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sonar-maven3-plugin/src/main/java/org/sonar/maven3/SonarMojo.java b/sonar-maven3-plugin/src/main/java/org/sonar/maven3/SonarMojo.java index d509c8728f2..15e9aa6f08f 100644 --- a/sonar-maven3-plugin/src/main/java/org/sonar/maven3/SonarMojo.java +++ b/sonar-maven3-plugin/src/main/java/org/sonar/maven3/SonarMojo.java @@ -19,6 +19,7 @@ */ package org.sonar.maven3; +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; @@ -39,8 +40,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 @@ -144,7 +143,7 @@ public final class SonarMojo extends AbstractMojo { } private void configureLogging(LoggingConfiguration logging) { - logging.setProperties((Map) session.getSystemProperties()); + logging.setProperties(Maps.fromProperties(session.getSystemProperties())); logging.setFormat(LoggingConfiguration.FORMAT_MAVEN); if (getLog().isDebugEnabled()) { logging.setVerbose(true); |