commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r767767 - /commons/proper/collections/trunk/src/java/org/apache/commons/collections/CollectionUtils.java
Date Thu, 23 Apr 2009 02:39:00 GMT
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);



Mime
View raw message