Issue Details (XML | Word | Printable)

Key: COLLECTIONS-298
Type: Wish Wish
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Benjamin Bentmann
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Collections

CollectionUtils.sizeIsEmpty(null) should return true

Created: 17/May/08 03:22 PM   Updated: 18/May/08 07:36 AM
Return to search
Component/s: Collection
Affects Version/s: 3.2
Fix Version/s: 4.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works COLLECTION-298.patch 2008-05-17 03:24 PM Benjamin Bentmann 3 kB
Issue Links:
Reference
 

Resolution Date: 18/May/08 07:36 AM


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


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Benjamin Bentmann made changes - 17/May/08 03:22 PM
Field Original Value New Value
Attachment COLLECTION-298.patch [ 12382246 ]
Benjamin Bentmann made changes - 17/May/08 03:23 PM
Attachment COLLECTION-298.patch [ 12382246 ]
Benjamin Bentmann made changes - 17/May/08 03:24 PM
Attachment COLLECTION-298.patch [ 12382247 ]
Benjamin Bentmann made changes - 17/May/08 03:24 PM
Link This issue is related to COLLECTIONS-230 [ COLLECTIONS-230 ]
Henri Yandell made changes - 18/May/08 07:36 AM
Resolution Fixed [ 1 ]
Fix Version/s 3.3 [ 12311987 ]
Status Open [ 1 ] Closed [ 6 ]