8178340: remove unneeded "throws" from ProcessTools::createJavaProcessBuilder
authoriignatyev
Tue, 11 Apr 2017 13:55:51 -0700
changeset 44579 0f99d2c0df52
parent 44509 02253db2ace1
child 44580 3bb61d40a703
8178340: remove unneeded "throws" from ProcessTools::createJavaProcessBuilder Reviewed-by: dholmes
test/lib/jdk/test/lib/process/ProcessTools.java
--- 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<>();