commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simone Tripodi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COLLECTIONS-368) New method in ListUtils to create Lists populated with var-args elements
Date Fri, 04 Feb 2011 11:26:28 GMT

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

Simone Tripodi commented on COLLECTIONS-368:
--------------------------------------------

Hi Henrik,
after having quickly looked at your patch, since I noticed you're using Java5 features, wouldn't
the default JDK5 provided Arrays#asList()[1] method be helpful for your needs?

[1] http://download.oracle.com/javase/1.5.0/docs/api/java/util/Arrays.html#asList(T...)

> New method in ListUtils to create Lists populated with var-args elements
> ------------------------------------------------------------------------
>
>                 Key: COLLECTIONS-368
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-368
>             Project: Commons Collections
>          Issue Type: New Feature
>          Components: List
>            Reporter: Henrik Segesten
>            Priority: Minor
>         Attachments: addcreatelist.patch
>
>
> Sometimes it is very useful to be able to create new and populate List objects in the
same way that can be done with arrays by using the braces initialisation. My patch is an implementation
of this for ListUtils with corresponding unit tests. Hoping for inclusion as soon as possible.
Any comments are welcome.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message