fixed errors reported by Checkstyle

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@813628 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Herve Boutemy 2009-09-10 22:50:38 +00:00
parent 05b59c8935
commit d64e8c5d70
2 changed files with 12 additions and 12 deletions

View File

@ -43,7 +43,7 @@ public class MojoDescriptor
implements Cloneable
{
/** The Plexus component type */
public static String MAVEN_PLUGIN = "maven-plugin";
public static final String MAVEN_PLUGIN = "maven-plugin";
/** "once-per-session" execution strategy */
public static final String SINGLE_PASS_EXEC_STRATEGY = "once-per-session";
@ -57,7 +57,7 @@ public class MojoDescriptor
private List<Parameter> parameters;
private Map<String,Parameter> parameterMap;
private Map<String, Parameter> parameterMap;
/** By default, the execution strategy is "once-per-session" */
private String executionStrategy = SINGLE_PASS_EXEC_STRATEGY;
@ -192,9 +192,9 @@ public class MojoDescriptor
{
if ( parameters != null && parameters.contains( parameter ) )
{
throw new DuplicateParameterException( parameter.getName() +
" has been declared multiple times in mojo with goal: " + getGoal() + " (implementation: " +
getImplementation() + ")" );
throw new DuplicateParameterException( parameter.getName()
+ " has been declared multiple times in mojo with goal: " + getGoal() + " (implementation: "
+ getImplementation() + ")" );
}
if ( parameters == null )
@ -208,11 +208,11 @@ public class MojoDescriptor
/**
* @return the list parameters as a Map
*/
public Map<String,Parameter> getParameterMap()
public Map<String, Parameter> getParameterMap()
{
if ( parameterMap == null )
{
parameterMap = new HashMap<String,Parameter>();
parameterMap = new HashMap<String, Parameter>();
if ( parameters != null )
{