commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Rabe (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COLLECTIONS-558) ListOrderedSet#remove(int) should return E instead of Object
Date Wed, 25 Mar 2015 14:46:53 GMT
Felix Rabe created COLLECTIONS-558:
--------------------------------------

             Summary: ListOrderedSet#remove(int) should return E instead of Object
                 Key: COLLECTIONS-558
                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-558
             Project: Commons Collections
          Issue Type: Bug
          Components: Set
    Affects Versions: 4.0
            Reporter: Felix Rabe


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

Minimal example that fails to compile:
{code:java}
ListOrderedSet<String> los = new ListOrderedSet<String>();
los.add("foo");
String s = los.remove(0);
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message