Skip to content

Commit

Permalink
Less method run(Source... sources) throws UnsupportedOperationExcept…
Browse files Browse the repository at this point in the history
…ion, fixes #810
  • Loading branch information
mattirn committed Dec 7, 2022
1 parent 2c4a192 commit 9711716
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtins/src/main/java/org/jline/builtins/Less.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002-2021, the original author or authors.
* Copyright (c) 2002-2022, the original author or authors.
*
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
Expand Down Expand Up @@ -302,7 +302,7 @@ public void handle(Signal signal) {
}

public void run(Source... sources) throws IOException, InterruptedException {
run(Arrays.asList(sources));
run(new ArrayList<>(Arrays.asList(sources)));
}

public void run(List<Source> sources) throws IOException, InterruptedException {
Expand Down

0 comments on commit 9711716

Please sign in to comment.