From 01dd8cde2c85c6f2c87eb9798fd2cc6020302ed3 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Wed, 23 May 2012 22:27:10 +0200 Subject: Remove warnings --- sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sonar-maven-plugin/src') 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); -- cgit v1.2.3