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

Thomas Neidhart commented on COLLECTIONS-524:
---------------------------------------------

Fixed in r1592910.

The method will now correctly remove duplicates.
Thanks for the report!

> 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.2#6252)

Reply via email to