Open Source Support Tools
 
Search Item
 
Summary
  Reported Issue
Title: [COLLECTIONS-298] CollectionUtils.sizeIsEmpty(null) should return true
Project: collections
Item Last Modified: Sun, 18 May 2008 00:36:54 -0700 (PDT)
Tags:  
 
 
Bug api benjamin bentmann collections collectionutils fixed isempty patch return src
Details
[COLLECTIONS-298] CollectionUtils.sizeIsEmpty(null) should return true
Reporter:   Benjamin Bentmann
Created:   Sat, 17 May 2008 08:22:05 -0700 (PDT)
Updated:   Sun, 18 May 2008 00:36:54 -0700 (PDT)
Key:   COLLECTIONS-298
Versions:   Not provided
Environment:  
Priority:   4
Status:   Closed
Resolution:   Fixed
Original Link:   http://issues.apache.org/jira/browse/COLLECTIONS-298
Summary:   CollectionUtils.sizeIsEmpty(null) should return true
Description:
The API would look inconsistent if
<ul class="alternate" type="square">
<li>CollectionUtils.isEmpty(null) == true</li>
<li>CollectionUtils.size(null) == 0
but</li>
<li>CollectionUtils.sizeIsEmpty(null) throws IAE</li>
</ul>
Comments:
bayard Sun, 18 May 2008 00:36:54 -0700 (PDT)
Agreed - patch applied. Thanks again