From ab6e5256d88ba65160635fd813d9af63100774f6 Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Thu, 23 Apr 2009 02:37:17 +0000 Subject: [PATCH] Fixing unnecessary null check in IteratorUtils per COLLECTIONS-319 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@767766 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/commons/collections/IteratorUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/commons/collections/IteratorUtils.java b/src/java/org/apache/commons/collections/IteratorUtils.java index 794961177..9805166f7 100644 --- a/src/java/org/apache/commons/collections/IteratorUtils.java +++ b/src/java/org/apache/commons/collections/IteratorUtils.java @@ -892,7 +892,7 @@ public class IteratorUtils { } 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 {