mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 20:12:14 +00:00
removed redundant string.format calls and merged array creation with addAll() calls (#4214)
This commit is contained in:
1 parent
83739816ce
commit
36ac586fc0
9 files changed
+10
-14
No files matched your search
@@ -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)));
|
||||
|
||||
|
||||
Reference in new issue
Block a user