8178340: remove unneeded "throws" from ProcessTools::createJavaProcessBuilder
authoriignatyev
Tue, 11 Apr 2017 13:55:52 -0700
changeset 44610 bf0f313f5006
parent 44509 02253db2ace1
child 44611 f20e8d62384c
8178340: remove unneeded "throws" from ProcessTools::createJavaProcessBuilder Reviewed-by: dholmes
jaxp/test/javax/xml/jaxp/libs/jdk/testlibrary/ProcessTools.java
--- a/jaxp/test/javax/xml/jaxp/libs/jdk/testlibrary/ProcessTools.java	Wed Jul 05 23:10:03 2017 +0200
+++ b/jaxp/test/javax/xml/jaxp/libs/jdk/testlibrary/ProcessTools.java	Tue Apr 11 13:55:52 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<>();