Skip to content

Commit

Permalink
(yegor256#1566) Generify ctor of JoinedListIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryBarskov committed Jul 15, 2022
1 parent 4f40f62 commit 78d621e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/cactoos/list/JoinedListIterator.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public final class JoinedListIterator<T> implements ListIterator<T> {
/**
* {@link List} of {@link ListIterator}.
*/
private final List<ListIterator<? extends T>> listiters;
private final List<? extends ListIterator<? extends T>> listiters;

/**
* Cursor of the {@link List} of {@link ListIterator}.
Expand Down Expand Up @@ -92,7 +92,7 @@ public JoinedListIterator(final ListIterator<? extends T> items, final T item) {
* Ctor.
* @param items Items to concatenate
*/
public JoinedListIterator(final List<ListIterator<? extends T>> items) {
public JoinedListIterator(final List<? extends ListIterator<? extends T>> items) {
this.listiters = items;
this.cursorlit = new AtomicInteger(-1);
this.cursor = new AtomicInteger(-1);
Expand Down

0 comments on commit 78d621e

Please sign in to comment.