You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2022/12/17 23:33:42 UTC

[maven] branch MNG-7636 created (now 6f444991e)

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a change to branch MNG-7636
in repository https://gitbox.apache.org/repos/asf/maven.git


      at 6f444991e [MNG-7636] Document MavenProject#getAttachedArtifacts() as read-only

This branch includes the following new commits:

     new 6f444991e [MNG-7636] Document MavenProject#getAttachedArtifacts() as read-only

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven] 01/01: [MNG-7636] Document MavenProject#getAttachedArtifacts() as read-only

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch MNG-7636
in repository https://gitbox.apache.org/repos/asf/maven.git

commit 6f444991e44b1de6b764d85f431608cd05cae60f
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sun Dec 18 00:21:30 2022 +0100

    [MNG-7636] Document MavenProject#getAttachedArtifacts() as read-only
---
 maven-core/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 d9307dae7..2ee227056 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<Artifact> getAttachedArtifacts() {
         if (attachedArtifacts == null) {
             attachedArtifacts = new ArrayList<>();