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
No work has yet been logged on this issue.