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

This closes #918
This commit is contained in:
Michael Osipov 2022-12-18 00:21:30 +01:00
parent 7a1cc12a47
commit 3eec6b82d3
1 changed files with 5 additions and 0 deletions

View File

@ -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<>();