commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r767766 - /commons/proper/collections/trunk/src/java/org/apache/commons/collections/IteratorUtils.java
Date Thu, 23 Apr 2009 02:37:09 GMT
Author: bayard
Date: Thu Apr 23 02:37:09 2009
New Revision: 767766

URL: http://svn.apache.org/viewvc?rev=767766&view=rev
Log:
Fixing unnecessary null check in IteratorUtils per COLLECTIONS-319

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

Modified: commons/proper/collections/trunk/src/java/org/apache/commons/collections/IteratorUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/java/org/apache/commons/collections/IteratorUtils.java?rev=767766&r1=767765&r2=767766&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/java/org/apache/commons/collections/IteratorUtils.java
(original)
+++ commons/proper/collections/trunk/src/java/org/apache/commons/collections/IteratorUtils.java
Thu Apr 23 02:37:09 2009
@@ -892,7 +892,7 @@
         } else if (obj instanceof Dictionary) {
             return new EnumerationIterator(((Dictionary) obj).elements());
             
-        } else if (obj != null && obj.getClass().isArray()) {
+        } else if (obj.getClass().isArray()) {
             return new ArrayIterator(obj);
             
         } else {



Mime
View raw message