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

Collection copy-constructors should accept wildcarded input

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0-alpha1
    • 4.0
    • Bag, BidiMap, Collection, List, Map, Set
    • 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

        1. wildcards.patch
          38 kB
          Hollis Waite

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: