Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-485

Collection copy-constructors should accept wildcarded input

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-alpha1
    • Fix Version/s: 4.0
    • Component/s: Bag, BidiMap, Collection, List, Map, Set
    • Labels:
      None

      Description

      Many Collection constructors copy input in order to self-populate. For convenience (and consistency with standard Java collections library), wildcarded parameters should be accepted where possible. Unmodifiable* classes might also benefit from less restrictive generic signatures.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hwaite Hollis Waite
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: