Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-8329

[API] Better usage of list wildcards for more flexibility

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0.0-beta-5
    • 4.0.0-beta-6
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gnodet Guillaume Nodet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: