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

ListOrderedSet#remove(int) should return E instead of Object

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.1
    • Set
    • None

    Description

      Since List#remove(int) returns E the implementation in ListOrderedSet should also return E.

      Minimal example that fails to compile:

      ListOrderedSet<String> los = new ListOrderedSet<String>();
      los.add("foo");
      String s = los.remove(0);
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            frabe Felix Rabe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: