[
https://issues.apache.org/jira/browse/MNG-7728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17698590#comment-17698590
]
ASF GitHub Bot commented on MNG-7728:
-------------------------------------
gnodet merged PR #1019:
URL: https://github.com/apache/maven/pull/1019
> Fix mutable api in PluginContainer
> ----------------------------------
>
> Key: MNG-7728
> URL: https://issues.apache.org/jira/browse/MNG-7728
> Project: Maven
> Issue Type: Bug
> Affects Versions: 4.0.0-alpha-4
> Reporter: Guillaume Nodet
> Assignee: Guillaume Nodet
> Priority: Major
> Fix For: 4.0.0-alpha-5
>
>
> The {{PluginContainer}} from the v4 api uses the same additional code block
> than the v3 api and thus offers a {{getPluginsAsMap()}} method along with a
> {{flushPluginMap()}} which makes the whole class non immutable.
> Given additional constructor arguments are not supported by the generator,
> using a lazy computed field should be enough to ensure that the content of
> the class never changes, even though the field itself can change, the value
> returned by {{getPluginsAsMap()}} cannot.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)