changeset 44593:4c9658735110

8178340: remove unneeded "throws" from ProcessTools::createJavaProcessBuilder Reviewed-by: dholmes
author iignatyev
date Tue, 11 Apr 2017 13:55:53 -0700
parents 64d9270bd24c
children 273249225894 8177065bcb6f
files jdk/test/lib/testlibrary/jdk/testlibrary/ProcessTools.java
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/test/lib/testlibrary/jdk/testlibrary/ProcessTools.java	Mon Apr 10 13:46:19 2017 -0700
+++ b/jdk/test/lib/testlibrary/jdk/testlibrary/ProcessTools.java	Tue Apr 11 13:55:53 2017 -0700
@@ -283,8 +283,7 @@
      * @param command Arguments to pass to the java command.
      * @return The ProcessBuilder instance representing the java command.
      */
-    public static ProcessBuilder createJavaProcessBuilder(String... command)
-            throws Exception {
+    public static ProcessBuilder createJavaProcessBuilder(String... command) {
         return createJavaProcessBuilder(false, command);
     }
 
@@ -297,7 +296,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<>();