From 3eec6b82d32f9889a92b275ec21765a82ebae7c6 Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Sun, 18 Dec 2022 00:21:30 +0100 Subject: [PATCH] [MNG-7636] Document MavenProject#getAttachedArtifacts() as read-only This closes #918 --- .../src/main/java/org/apache/maven/project/MavenProject.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maven-core/src/main/java/org/apache/maven/project/MavenProject.java b/maven-core/src/main/java/org/apache/maven/project/MavenProject.java index b8e42caef8..cbbbfd180d 100644 --- a/maven-core/src/main/java/org/apache/maven/project/MavenProject.java +++ b/maven-core/src/main/java/org/apache/maven/project/MavenProject.java @@ -798,6 +798,11 @@ public class MavenProject implements Cloneable { } } + /** + * Returns a read-only list of the attached artifacts to this project. + * + * @return the attached artifacts of this project + */ public List getAttachedArtifacts() { if (attachedArtifacts == null) { attachedArtifacts = new ArrayList<>();