[jira] Created: (COLLECTIONS-298) CollectionUtils.sizeIsEmpty(null) should return true

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (COLLECTIONS-298) CollectionUtils.sizeIsEmpty(null) should return true

JIRA jira@apache.org
CollectionUtils.sizeIsEmpty(null) should return true
----------------------------------------------------

                 Key: COLLECTIONS-298
                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-298
             Project: Commons Collections
          Issue Type: Wish
          Components: Collection
    Affects Versions: 3.2
            Reporter: Benjamin Bentmann
            Priority: Minor


The API would look inconsistent if
- CollectionUtils.isEmpty(null) == true
- CollectionUtils.size(null) == 0
but
- CollectionUtils.sizeIsEmpty(null) throws IAE


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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (COLLECTIONS-298) CollectionUtils.sizeIsEmpty(null) should return true

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/COLLECTIONS-298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated COLLECTIONS-298:
------------------------------------------

    Attachment: COLLECTION-298.patch

> CollectionUtils.sizeIsEmpty(null) should return true
> ----------------------------------------------------
>
>                 Key: COLLECTIONS-298
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-298
>             Project: Commons Collections
>          Issue Type: Wish
>          Components: Collection
>    Affects Versions: 3.2
>            Reporter: Benjamin Bentmann
>            Priority: Minor
>
> The API would look inconsistent if
> - CollectionUtils.isEmpty(null) == true
> - CollectionUtils.size(null) == 0
> but
> - CollectionUtils.sizeIsEmpty(null) throws IAE

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (COLLECTIONS-298) CollectionUtils.sizeIsEmpty(null) should return true

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/COLLECTIONS-298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated COLLECTIONS-298:
------------------------------------------

    Attachment:     (was: COLLECTION-298.patch)

> CollectionUtils.sizeIsEmpty(null) should return true
> ----------------------------------------------------
>
>                 Key: COLLECTIONS-298
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-298
>             Project: Commons Collections
>          Issue Type: Wish
>          Components: Collection
>    Affects Versions: 3.2
>            Reporter: Benjamin Bentmann
>            Priority: Minor
>
> The API would look inconsistent if
> - CollectionUtils.isEmpty(null) == true
> - CollectionUtils.size(null) == 0
> but
> - CollectionUtils.sizeIsEmpty(null) throws IAE

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (COLLECTIONS-298) CollectionUtils.sizeIsEmpty(null) should return true

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/COLLECTIONS-298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated COLLECTIONS-298:
------------------------------------------

    Attachment: COLLECTION-298.patch

> CollectionUtils.sizeIsEmpty(null) should return true
> ----------------------------------------------------
>
>                 Key: COLLECTIONS-298
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-298
>             Project: Commons Collections
>          Issue Type: Wish
>          Components: Collection
>    Affects Versions: 3.2
>            Reporter: Benjamin Bentmann
>            Priority: Minor
>         Attachments: COLLECTION-298.patch
>
>
> The API would look inconsistent if
> - CollectionUtils.isEmpty(null) == true
> - CollectionUtils.size(null) == 0
> but
> - CollectionUtils.sizeIsEmpty(null) throws IAE

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

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (COLLECTIONS-298) CollectionUtils.sizeIsEmpty(null) should return true

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/COLLECTIONS-298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell closed COLLECTIONS-298.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.3

Agreed - patch applied. Thanks again :)

> CollectionUtils.sizeIsEmpty(null) should return true
> ----------------------------------------------------
>
>                 Key: COLLECTIONS-298
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-298
>             Project: Commons Collections
>          Issue Type: Wish
>          Components: Collection
>    Affects Versions: 3.2
>            Reporter: Benjamin Bentmann
>            Priority: Minor
>             Fix For: 3.3
>
>         Attachments: COLLECTION-298.patch
>
>
> The API would look inconsistent if
> - CollectionUtils.isEmpty(null) == true
> - CollectionUtils.size(null) == 0
> but
> - CollectionUtils.sizeIsEmpty(null) throws IAE

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