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:37:09 UTC
svn commit: r767766 -
/commons/proper/collections/trunk/src/java/org/apache/commons/collections/IteratorUtils.java
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 {