[
https://issues.apache.org/jira/browse/MNG-8329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume Nodet updated MNG-8329:
---------------------------------
Component/s: API
> [API] Better usage of list wildcards for more flexibility
> ---------------------------------------------------------
>
> Key: MNG-8329
> URL: https://issues.apache.org/jira/browse/MNG-8329
> Project: Maven
> Issue Type: Improvement
> Components: API
> Affects Versions: 4.0.0-beta-5
> Reporter: Guillaume Nodet
> Priority: Major
> Fix For: 4.0.0-beta-6
>
>
> For example {{ProjectManager.getAllArtifacts()}} returns a
> {{List<ProducedArtifact>}} while {{ArtifactDeployerRequestBuilder.artifacts}}
> accepts a {{List<Artifact>}}, and the first one cannot be cast to the second.
> So we need to make the types minimal. Probably {{List<? extends
> ProducedArtifact>}} and {{Iterable<? extends Artifact>}} to be as large as
> possible.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)