mirror of https://github.com/apache/maven.git
[MNG-7636] Document MavenProject#getAttachedArtifacts() as read-only
This closes #918
This commit is contained in:
parent
7a1cc12a47
commit
3eec6b82d3
|
@ -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() {
|
public List<Artifact> getAttachedArtifacts() {
|
||||||
if (attachedArtifacts == null) {
|
if (attachedArtifacts == null) {
|
||||||
attachedArtifacts = new ArrayList<>();
|
attachedArtifacts = new ArrayList<>();
|
||||||
|
|
Loading…
Reference in New Issue