removed redundant string.format calls and merged array creation with addAll() calls (#4214)

This commit is contained in:
StefanSpieker authored and Oleg Nenashev committed 2019-09-26 22:40:34 +02:00
1 parent 83739816ce
commit 36ac586fc0
9 files changed
+10 -14

No files matched your search

+1 -2
View File
@@ -153,8 +153,7 @@ public class Main {
// run the command
long start = System.currentTimeMillis();
List<String> cmd = new ArrayList<>();
cmd.addAll(Arrays.asList(args).subList(1, args.length));
List<String> cmd = new ArrayList<>(Arrays.asList(args).subList(1, args.length));
Proc proc = new Proc.LocalProc(cmd.toArray(new String[0]),(String[])null,System.in,
new DualOutputStream(System.out,new EncodingStream(os)));