You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Neidhart (JIRA)" <ji...@apache.org> on 2015/11/27 22:11:11 UTC

[jira] [Closed] (COLLECTIONS-524) ListOrderedSet can have duplicates

     [ https://issues.apache.org/jira/browse/COLLECTIONS-524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Neidhart closed COLLECTIONS-524.
---------------------------------------

> ListOrderedSet can have duplicates
> ----------------------------------
>
>                 Key: COLLECTIONS-524
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-524
>             Project: Commons Collections
>          Issue Type: Bug
>    Affects Versions: 3.2.1, 4.0
>         Environment: tomcat 7, linux
>            Reporter: J Goodfellow
>             Fix For: 4.1
>
>
> The static method, org.apache.commons.collections.set.ListOrderedSet.decorate(List list), has a comment "If the list contains duplicates, the duplicates are removed".  It does not remove duplicates and will leave you in an inconsistent state if your list has duplicates.  (i.e. the .size() result is smaller than the number of iterations from the iterator)



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