changeset 44579:0f99d2c0df52

8178340: remove unneeded "throws" from ProcessTools::createJavaProcessBuilder Reviewed-by: dholmes
author iignatyev
date Tue, 11 Apr 2017 13:55:51 -0700
parents 02253db2ace1
children 3bb61d40a703
files test/lib/jdk/test/lib/process/ProcessTools.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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<>();