diff --git a/maven-core/src/main/java/org/apache/maven/project/validation/ModelValidationResult.java b/maven-core/src/main/java/org/apache/maven/project/validation/ModelValidationResult.java index a3ac40cd40..e0626e40c4 100644 --- a/maven-core/src/main/java/org/apache/maven/project/validation/ModelValidationResult.java +++ b/maven-core/src/main/java/org/apache/maven/project/validation/ModelValidationResult.java @@ -33,11 +33,11 @@ public class ModelValidationResult private final static String NEWLINE = System.getProperty( "line.separator" ); /** */ - private List messages; + private List messages; public ModelValidationResult() { - messages = new ArrayList(); + messages = new ArrayList(); } public int getMessageCount() @@ -50,7 +50,7 @@ public class ModelValidationResult return messages.get( i ).toString(); } - public List getMessages() + public List getMessages() { return Collections.unmodifiableList( messages ); }