Author: bayard
Date: Thu Apr 23 02:38:59 2009
New Revision: 767767

URL: http://svn.apache.org/viewvc?rev=767767&view=rev
Log:
Removing unnecessary null check per COLLECTIONS-318

Modified:
    
commons/proper/collections/trunk/src/java/org/apache/commons/collections/CollectionUtils.java

Modified: 
commons/proper/collections/trunk/src/java/org/apache/commons/collections/CollectionUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/java/org/apache/commons/collections/CollectionUtils.java?rev=767767&r1=767766&r2=767767&view=diff
==============================================================================
--- 
commons/proper/collections/trunk/src/java/org/apache/commons/collections/CollectionUtils.java
 (original)
+++ 
commons/proper/collections/trunk/src/java/org/apache/commons/collections/CollectionUtils.java
 Thu Apr 23 02:38:59 2009
@@ -914,8 +914,6 @@
                 total++;
                 it.nextElement();
             }
-        } else if (object == null) {
-            throw new IllegalArgumentException("Unsupported object type: 
null");
         } else {
             try {
                 total = Array.getLength(object);


Reply via email to