You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Felix Rabe (JIRA)" <ji...@apache.org> on 2015/03/25 22:40:52 UTC

[jira] [Commented] (COLLECTIONS-558) ListOrderedSet#remove(int) should return E instead of Object

    [ https://issues.apache.org/jira/browse/COLLECTIONS-558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14380835#comment-14380835 ] 

Felix Rabe commented on COLLECTIONS-558:
----------------------------------------

Well, thank you for your work and thanks for the Apache Commons Collections :)

> 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
>             Fix For: 4.1
>
>
> 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)