diff --git a/src/main/java/org/apache/commons/collections4/iterators/LazyIteratorChain.java b/src/main/java/org/apache/commons/collections4/iterators/LazyIteratorChain.java index 062a0241c..b412492ad 100644 --- a/src/main/java/org/apache/commons/collections4/iterators/LazyIteratorChain.java +++ b/src/main/java/org/apache/commons/collections4/iterators/LazyIteratorChain.java @@ -29,8 +29,8 @@ import java.util.Iterator; * The Iterators are provided by {@link #nextIterator(int)} which has to be overridden by * sub-classes and allows to lazily create the Iterators as they are accessed: *
- * return new LazyIteratorChain() { - * protected Iterator nextIterator(int count) { + * return new LazyIteratorChain<String>() { + * protected Iterator<String> nextIterator(int count) { * return count == 1 ? Arrays.asList("foo", "bar").iterator() : null; * } * };