[ 
https://issues.apache.org/jira/browse/MNG-8329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guillaume Nodet updated MNG-8329:
---------------------------------
    Fix Version/s: 4.0.0-beta-6

> [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
>    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)

Reply via email to