Document the reason chainedIterator(Iterator, Iterator) still remains.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1479761 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
73dcea01b1
commit
d16f842887
|
@ -485,6 +485,8 @@ public class IteratorUtils {
|
|||
*/
|
||||
public static <E> Iterator<E> chainedIterator(final Iterator<? extends E> iterator1,
|
||||
final Iterator<? extends E> iterator2) {
|
||||
// keep a version with two iterators to avoid the following warning in client code (Java 5 & 6)
|
||||
// "A generic array of E is created for a varargs parameter"
|
||||
return new IteratorChain<E>(iterator1, iterator2);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue