Guillaume Nodet created MNG-8329:
------------------------------------

             Summary: [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


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