Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
IteratorUtils.getIterator(Object obj) performs redundant null check:
if (obj == null) { return emptyIterator(); ... } else if (obj != null && obj.getClass().isArray()) { return new ArrayIterator(obj);
obj cannot be null at that point, so the check can be removed.
[This will also prevent a false positive in Eclipse which later says tha obj may be null]