diff --git a/builtins/src/main/java/org/jline/builtins/Less.java b/builtins/src/main/java/org/jline/builtins/Less.java index 5cc881b1e..68d242f0c 100644 --- a/builtins/src/main/java/org/jline/builtins/Less.java +++ b/builtins/src/main/java/org/jline/builtins/Less.java @@ -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. @@ -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 sources) throws IOException, InterruptedException {