summaryrefslogtreecommitdiffstats
path: root/sonar-maven-plugin
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-05-23 22:27:10 +0200
committerDavid Gageot <david@gageot.net>2012-05-23 22:34:46 +0200
commit01dd8cde2c85c6f2c87eb9798fd2cc6020302ed3 (patch)
tree301788914ab32e4a2a972716c0ed8db8ac844294 /sonar-maven-plugin
parentfe9e4f3eea867948e25642c24d0ff376907a3f2a (diff)
downloadsonarqube-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.java5
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);