You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henrik Segesten (JIRA)" <ji...@apache.org> on 2010/12/27 21:58:47 UTC

[jira] Created: (COLLECTIONS-368) New method in ListUtils to create a new List populated with var-args elements

New method in ListUtils to create a new List 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.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COLLECTIONS-368) New method in ListUtils to create Lists populated with var-args elements

Posted by "Henrik Segesten (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COLLECTIONS-368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12983642#action_12983642 ] 

Henrik Segesten commented on COLLECTIONS-368:
---------------------------------------------

Anything more I need to do to have this included in next release?

> 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.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COLLECTIONS-368) New method in ListUtils to create Lists populated with var-args elements

Posted by "Sebb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COLLECTIONS-368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12990508#comment-12990508 ] 

Sebb commented on COLLECTIONS-368:
----------------------------------

The patch includes several unrelated white-space changes. These make it much harder to review, both here and when the SVN commit message is sent.

Patches should contain the minimal change necessary please.

> 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

        

[jira] Updated: (COLLECTIONS-368) New method in ListUtils to create Lists populated with var-args elements

Posted by "Henrik Segesten (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COLLECTIONS-368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henrik Segesten updated COLLECTIONS-368:
----------------------------------------

    Attachment: addcreatelist.patch

> 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.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (COLLECTIONS-368) New method in ListUtils to create Lists populated with var-args elements

Posted by "Matt Benson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COLLECTIONS-368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Benson resolved COLLECTIONS-368.
-------------------------------------

    Resolution: Invalid

+1 to Simone's comment, works for me

> 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

        

[jira] Commented: (COLLECTIONS-368) New method in ListUtils to create Lists populated with var-args elements

Posted by "Simone Tripodi (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] Updated: (COLLECTIONS-368) New method in ListUtils to create Lists populated with var-args elements

Posted by "Henrik Segesten (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COLLECTIONS-368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henrik Segesten updated COLLECTIONS-368:
----------------------------------------

    Summary: New method in ListUtils to create Lists populated with var-args elements  (was: New method in ListUtils to create a new List populated with var-args elements)

> 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.
-
You can reply to this email to add a comment to the issue online.