8178340: remove unneeded "throws" from ProcessTools::createJavaProcessBuilder
Reviewed-by: dholmes
--- a/test/lib/jdk/test/lib/process/ProcessTools.java Wed Jul 05 23:10:03 2017 +0200
+++ b/test/lib/jdk/test/lib/process/ProcessTools.java Tue Apr 11 13:55:51 2017 -0700
@@ -335,7 +335,7 @@
* 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 @@
* @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<>();