Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
4.4
-
None
-
None
Description
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 item as expected. Tested with commons-collections:4.4 and java8.
All can be resumed with
CollectionUtils.filter(Collections.singleton(" "), StringUtils::isNotBlank);