Pankraz76 commented on code in PR #2458:
URL: https://github.com/apache/maven/pull/2458#discussion_r2134809860


##########
impl/maven-core/src/main/java/org/apache/maven/project/MavenProject.java:
##########
@@ -124,7 +124,7 @@ public class MavenProject implements Cloneable {
 
     private ArtifactFilter artifactFilter;
 
-    private Set<Artifact> artifacts;
+    private final Set<Artifact> artifacts = new LinkedHashSet<>();

Review Comment:
   - https://adabeat.com/fp/immutability-in-functional-programming
   
   seems to keep winning.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to