You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ba...@apache.org on 2009/04/23 04:39:00 UTC

svn commit: r767767 - /commons/proper/collections/trunk/src/java/org/apache/commons/collections/CollectionUtils.java

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);