From 393fa5df9262c339e004e061809c73d7637a909b Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Tue, 26 Nov 2013 21:11:29 +0000 Subject: [PATCH] Use interface instead of concrete class. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1545844 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/collections4/iterators/CollatingIterator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/iterators/CollatingIterator.java b/src/main/java/org/apache/commons/collections4/iterators/CollatingIterator.java index 6805f6575..9ea38fc43 100644 --- a/src/main/java/org/apache/commons/collections4/iterators/CollatingIterator.java +++ b/src/main/java/org/apache/commons/collections4/iterators/CollatingIterator.java @@ -44,10 +44,10 @@ public class CollatingIterator implements Iterator { private Comparator comparator = null; /** The list of {@link Iterator}s to evaluate. */ - private ArrayList> iterators = null; + private List> iterators = null; /** {@link Iterator#next Next} objects peeked from each iterator. */ - private ArrayList values = null; + private List values = null; /** Whether or not each {@link #values} element has been set. */ private BitSet valueSet = null; @@ -392,7 +392,7 @@ public class CollatingIterator implements Iterator { * Returns true iff any {@link Iterator} in the given list has * a next value. */ - private boolean anyHasNext(final ArrayList> iters) { + private boolean anyHasNext(final List> iters) { for (final Iterator iterator : iters) { if (iterator.hasNext()) { return true;