From 238c28b0f69adc75a6ab5ba9a63dda4320d141c7 Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Sat, 15 Oct 2005 12:48:20 +0000 Subject: [PATCH] PR: MNG-862 Submitted by: Rod Coffin don't force a particular implementation of Map on configuration git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@321325 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/maven/plugin/AbstractCompilerMojo.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java b/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java index a54487c84d..c63db84bbe 100644 --- a/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java +++ b/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java @@ -35,6 +35,7 @@ import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; +import java.util.Map; import java.util.Set; /** @@ -157,7 +158,7 @@ public abstract class AbstractCompilerMojo * * @parameter */ - private LinkedHashMap compilerArguments; + private Map compilerArguments; /** * Used to control the name of the output file when compiling a set of @@ -276,7 +277,8 @@ public void execute() compilerConfiguration.setSourceEncoding( encoding ); - compilerConfiguration.setCustomCompilerArguments( compilerArguments ); + compilerConfiguration + .setCustomCompilerArguments( compilerArguments == null ? null : new LinkedHashMap( compilerArguments ) ); compilerConfiguration.setFork( fork );