mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-12 14:39:49 +00:00
8178340: remove unneeded "throws" from ProcessTools::createJavaProcessBuilder
Reviewed-by: dholmes
This commit is contained in:
parent
c6675bd02f
commit
66c8241a1e
@ -335,7 +335,7 @@ public final class ProcessTools {
|
||||
* Create ProcessBuilder using the java launcher from the jdk to be tested and
|
||||
* with any platform specific arguments prepended
|
||||
*/
|
||||
public static ProcessBuilder createJavaProcessBuilder(String... command) throws Exception {
|
||||
public static ProcessBuilder createJavaProcessBuilder(String... command) {
|
||||
return createJavaProcessBuilder(false, command);
|
||||
}
|
||||
|
||||
@ -348,7 +348,7 @@ public final class ProcessTools {
|
||||
* @param command Arguments to pass to the java command.
|
||||
* @return The ProcessBuilder instance representing the java command.
|
||||
*/
|
||||
public static ProcessBuilder createJavaProcessBuilder(boolean addTestVmAndJavaOptions, String... command) throws Exception {
|
||||
public static ProcessBuilder createJavaProcessBuilder(boolean addTestVmAndJavaOptions, String... command) {
|
||||
String javapath = JDKToolFinder.getJDKTool("java");
|
||||
|
||||
ArrayList<String> args = new ArrayList<>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user