History
Log In
h
ome
b
rowse project
f
ind issues
Q
uick Search:
Learn more about
Quick Search
Issue Details
(
XML
|
Word
|
Printable
)
Key:
COLLECTIONS-298
Type:
Wish
Status:
Closed
Resolution:
Fixed
Priority:
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:
File Name
Date Attached
Attached By
Size
COLLECTION-298.patch
2008-05-17 03:24 PM
Benjamin Bentmann
3 kB
Issue Links:
Reference
This issue
is related to
:
COLLECTIONS-230
CollectionUtils.size(null) should return 0
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
Description
The API would look inconsistent if
CollectionUtils.isEmpty(null) == true
CollectionUtils.size(null) == 0 but
CollectionUtils.sizeIsEmpty(null) throws IAE
Show »
All
Comments
Work Log
Change History
Subversion Commits
Sort Order:
Repository
Revision
Date
User
Message
ASF
#657503
Sun May 18 07:36:46 UTC 2008
bayard
Modifying sizeIsEmpty such that null -> true and not an IllegalArgumentException as per Benjamin Bentmann's patch to
COLLECTIONS-298
Files Changed
MODIFY
/commons/proper/collections/trunk/src/java/org/apache/commons/collections/CollectionUtils.java
MODIFY
/commons/proper/collections/trunk/src/test/org/apache/commons/collections/TestCollectionUtils.java