You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2008/03/13 22:22:24 UTC

[jira] Created: (COLLECTIONS-287) Null-safe Collections.isEmpty

Null-safe Collections.isEmpty
-----------------------------

                 Key: COLLECTIONS-287
                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-287
             Project: Commons Collections
          Issue Type: New Feature
          Components: Collection
    Affects Versions: 3.2
            Reporter: Paul Benedict
            Priority: Minor
             Fix For: 3.3


It would be nice to retrieve the size of collections and not care whether the collection is null -- returning 0 otherwise. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (COLLECTIONS-287) Null-safe Collections.size

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

Henri Yandell closed COLLECTIONS-287.
-------------------------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: 3.4)
                   3.3

Already there - CollectionUtils.size(Object). Returns 0 if you pass null in. Showed up in 3.1.

> Null-safe Collections.size
> --------------------------
>
>                 Key: COLLECTIONS-287
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-287
>             Project: Commons Collections
>          Issue Type: New Feature
>          Components: Collection
>    Affects Versions: 3.2
>            Reporter: Paul Benedict
>            Priority: Minor
>             Fix For: 3.3
>
>
> It would be nice to retrieve the size of collections and not care whether the collection is null -- returning 0 otherwise. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COLLECTIONS-287) Null-safe Collections.size

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

Henri Yandell commented on COLLECTIONS-287:
-------------------------------------------

Seems easy enough - add a patch and change the version to 3.3 :)

> Null-safe Collections.size
> --------------------------
>
>                 Key: COLLECTIONS-287
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-287
>             Project: Commons Collections
>          Issue Type: New Feature
>          Components: Collection
>    Affects Versions: 3.2
>            Reporter: Paul Benedict
>            Priority: Minor
>             Fix For: 3.4
>
>
> It would be nice to retrieve the size of collections and not care whether the collection is null -- returning 0 otherwise. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COLLECTIONS-287) Null-safe Collections.size

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

Paul Benedict updated COLLECTIONS-287:
--------------------------------------

    Summary: Null-safe Collections.size  (was: Null-safe Collections.isEmpty)

> Null-safe Collections.size
> --------------------------
>
>                 Key: COLLECTIONS-287
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-287
>             Project: Commons Collections
>          Issue Type: New Feature
>          Components: Collection
>    Affects Versions: 3.2
>            Reporter: Paul Benedict
>            Priority: Minor
>             Fix For: 3.3
>
>
> It would be nice to retrieve the size of collections and not care whether the collection is null -- returning 0 otherwise. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COLLECTIONS-287) Null-safe Collections.size

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

Henri Yandell updated COLLECTIONS-287:
--------------------------------------

    Comment: was deleted

> Null-safe Collections.size
> --------------------------
>
>                 Key: COLLECTIONS-287
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-287
>             Project: Commons Collections
>          Issue Type: New Feature
>          Components: Collection
>    Affects Versions: 3.2
>            Reporter: Paul Benedict
>            Priority: Minor
>             Fix For: 3.3
>
>
> It would be nice to retrieve the size of collections and not care whether the collection is null -- returning 0 otherwise. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COLLECTIONS-287) Null-safe Collections.size

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

Henri Yandell updated COLLECTIONS-287:
--------------------------------------

    Fix Version/s:     (was: 3.3)
                   3.4

> Null-safe Collections.size
> --------------------------
>
>                 Key: COLLECTIONS-287
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-287
>             Project: Commons Collections
>          Issue Type: New Feature
>          Components: Collection
>    Affects Versions: 3.2
>            Reporter: Paul Benedict
>            Priority: Minor
>             Fix For: 3.4
>
>
> It would be nice to retrieve the size of collections and not care whether the collection is null -- returning 0 otherwise. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.