Skip to content
Snippets Groups Projects
Commit 2f0c9395 authored by Tomasz Grabiec's avatar Tomasz Grabiec
Browse files

java: use varargs for run() arguments

This makes API more friendly.
parent 424e1245
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ public class ContextIsolator {
return run(ClassLoader.getSystemClassLoader(), process);
}
public void runSync(String[] args) throws Throwable {
public void runSync(String... args) throws Throwable {
Context context = run(args);
while (true) {
......@@ -97,7 +97,7 @@ public class ContextIsolator {
}
}
public Context run(String[] args) throws Throwable {
public Context run(String... args) throws Throwable {
ArrayList<String> classpath = new ArrayList<>();
for (int i = 0; i < args.length; i++) {
if (args[i].equals("-jar")) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment