You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "noname713705 (Jira)" <ji...@apache.org> on 2020/03/08 22:24:00 UTC

[jira] [Comment Edited] (COLLECTIONS-756) CollectionUtils.filter(..) broken with blank Collections.singleton

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

noname713705 edited comment on COLLECTIONS-756 at 3/8/20, 10:23 PM:
--------------------------------------------------------------------

I have created a small github project to show the problem and expected behaviour. If unclear, please contact me.

The project is here:

[https://github.com/noname713705/commons-collections-test]


was (Author: noname713705):
I have createda small github project to show the problem and expected behaviour. If unclear, please contact me.

The project is here:

[https://github.com/noname713705/commons-collections-test]

> CollectionUtils.filter(..) broken with blank Collections.singleton
> ------------------------------------------------------------------
>
>                 Key: COLLECTIONS-756
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-756
>             Project: Commons Collections
>          Issue Type: Bug
>          Components: Collection
>    Affects Versions: 4.4
>            Reporter: noname713705
>            Priority: Major
>
> When using {{CollectionUtils.filter(..)}}, if the passed collection is initialized with jdk {{Collections.singleton(..)}} and only contains an {{isBlank(..)}} string, the method will throw an exception instead of removing blank items as expected. Tested with commons-collections:4.4 and java8



--
This message was sent by Atlassian Jira
(v8.3.4#803005)