File tree Expand file tree Collapse file tree
src/main/java/org/apache/commons/io/input Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121import java .io .IOException ;
2222import java .io .Reader ;
2323import java .io .SequenceInputStream ;
24- import java .io .UncheckedIOException ;
2524import java .util .Arrays ;
2625import java .util .Iterator ;
2726import java .util .Objects ;
2827
28+ import org .apache .commons .io .function .Uncheck ;
29+
2930/**
3031 * Provides the contents of multiple {@link Reader}s in sequence.
3132 * <p>
@@ -46,11 +47,7 @@ public class SequenceReader extends Reader {
4647 */
4748 public SequenceReader (final Iterable <? extends Reader > readers ) {
4849 this .readers = Objects .requireNonNull (readers , "readers" ).iterator ();
49- try {
50- this .reader = nextReader ();
51- } catch (final IOException e ) {
52- throw new UncheckedIOException (e );
53- }
50+ this .reader = Uncheck .get (this ::nextReader );
5451 }
5552
5653 /**
You can’t perform that action at this time.
0 commit comments