You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matt Benson (JIRA)" <ji...@apache.org> on 2009/09/11 18:12:57 UTC
[jira] Resolved: (COLLECTIONS-218) CollectionUtils.select() does
not return passed in collection
[ https://issues.apache.org/jira/browse/COLLECTIONS-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Benson resolved COLLECTIONS-218.
-------------------------------------
Resolution: Fixed
skestle resolved svn revision 593144
> CollectionUtils.select() does not return passed in collection
> -------------------------------------------------------------
>
> Key: COLLECTIONS-218
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-218
> Project: Commons Collections
> Issue Type: Improvement
> Components: Core
> Affects Versions: 3.2
> Reporter: Stephen Kestle
> Assignee: Stephen Kestle
> Fix For: Generics
>
> Attachments: CollectionUtils select return.patch
>
>
> collect has the following methods:
> Collection collect(Collection inputCollection, final Transformer transformer)
> Collection collect(Collection inputCollection, final Transformer transformer, final Collection outputCollection)
> The first creates an ArrayList(), where the second takes an outputCollection and, for convenience, returns it.
> Select (and selectReject) currently the following methods:
> Collection select(Collection inputCollection, Predicate predicate)
> void select(Collection inputCollection, Predicate predicate, Collection outputCollection)
> I propose changing the bottom method to return the passed in outputCollection. It would simplify calling code.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.