Skip to content

Commit

Permalink
(yegor256#1568) Generify iterable.Joined(Iterable<Iterable>) ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryBarskov committed Jun 29, 2021
1 parent cc5daf0 commit 9cc89a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/cactoos/iterable/Joined.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
*/
package org.cactoos.iterable;

import org.cactoos.list.ListOf;

import java.util.Iterator;

/**
Expand Down Expand Up @@ -59,7 +61,7 @@ public Joined(final T item, final Iterable<? extends T> items) {
* Ctor.
* @param items Items to concatenate
*/
public Joined(final Iterable<Iterable<? extends T>> items) {
public Joined(final Iterable<? extends Iterable<? extends T>> items) {
super(
new IterableOf<>(
() -> new org.cactoos.iterator.Joined<>(
Expand Down

0 comments on commit 9cc89a7

Please sign in to comment.