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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: Set
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: