equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
124 * array |
124 * array |
125 */ |
125 */ |
126 default int run(PrintStream out, PrintStream err, String... args) { |
126 default int run(PrintStream out, PrintStream err, String... args) { |
127 Objects.requireNonNull(out); |
127 Objects.requireNonNull(out); |
128 Objects.requireNonNull(err); |
128 Objects.requireNonNull(err); |
|
129 Objects.requireNonNull(args); |
129 for (String arg : args) { |
130 for (String arg : args) { |
130 Objects.requireNonNull(args); |
131 Objects.requireNonNull(arg); |
131 } |
132 } |
132 |
133 |
133 PrintWriter outWriter = new PrintWriter(out); |
134 PrintWriter outWriter = new PrintWriter(out); |
134 PrintWriter errWriter = new PrintWriter(err); |
135 PrintWriter errWriter = new PrintWriter(err); |
135 try { |
136 try { |