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
This commit is contained in:
parent
65eb026acf
commit
ab6e5256d8
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue