Pankraz76 commented on code in PR #2458: URL: https://github.com/apache/maven/pull/2458#discussion_r2134684437
########## impl/maven-core/src/main/java/org/apache/maven/project/MavenProject.java: ########## @@ -120,15 +121,15 @@ public class MavenProject implements Cloneable { private Path rootDirectory; - private Set<Artifact> resolvedArtifacts; + private final Set<Artifact> resolvedArtifacts= new HashSet<>(); Review Comment: having immutability in NPE-land java is important. -- 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