diff --git a/platform/platform-impl/src/com/intellij/execution/process/KillableColoredProcessHandler.java b/platform/platform-impl/src/com/intellij/execution/process/KillableColoredProcessHandler.java index c0f4e93dc1ec..5179fe67d395 100644 --- a/platform/platform-impl/src/com/intellij/execution/process/KillableColoredProcessHandler.java +++ b/platform/platform-impl/src/com/intellij/execution/process/KillableColoredProcessHandler.java @@ -38,7 +38,7 @@ public class KillableColoredProcessHandler extends ColoredProcessHandler impleme private boolean myShouldKillProcessSoftly = true; - public KillableColoredProcessHandler(GeneralCommandLine commandLine) throws ExecutionException { + public KillableColoredProcessHandler(@NotNull GeneralCommandLine commandLine) throws ExecutionException { super(commandLine); } diff --git a/python/src/com/jetbrains/python/run/JythonProcessHandler.java b/python/src/com/jetbrains/python/run/JythonProcessHandler.java index 4c83a7eca94c..7adf9141c055 100644 --- a/python/src/com/jetbrains/python/run/JythonProcessHandler.java +++ b/python/src/com/jetbrains/python/run/JythonProcessHandler.java @@ -23,8 +23,8 @@ import org.jetbrains.annotations.NotNull; * @author traff */ public class JythonProcessHandler extends PythonProcessHandler { - private JythonProcessHandler(@NotNull Process process, @NotNull GeneralCommandLine commandLine) { - super(process, commandLine); + private JythonProcessHandler(@NotNull GeneralCommandLine commandLine) throws ExecutionException { + super(commandLine); } @Override @@ -36,8 +36,6 @@ public class JythonProcessHandler extends PythonProcessHandler { public static JythonProcessHandler createProcessHandler(GeneralCommandLine commandLine) throws ExecutionException { - Process p = commandLine.createProcess(); - - return new JythonProcessHandler(p, commandLine); + return new JythonProcessHandler(commandLine); } } diff --git a/python/src/com/jetbrains/python/run/PythonProcessHandler.java b/python/src/com/jetbrains/python/run/PythonProcessHandler.java index e4add4a83606..d8d06d1b49d7 100644 --- a/python/src/com/jetbrains/python/run/PythonProcessHandler.java +++ b/python/src/com/jetbrains/python/run/PythonProcessHandler.java @@ -26,8 +26,8 @@ import java.nio.charset.Charset; * @author traff */ public class PythonProcessHandler extends KillableColoredProcessHandler { - protected PythonProcessHandler(@NotNull Process process, @NotNull GeneralCommandLine commandLine) { - super(process, commandLine.getCommandLineString()); + protected PythonProcessHandler(@NotNull GeneralCommandLine commandLine) throws ExecutionException { + super(commandLine); } public PythonProcessHandler(Process process, String commandLine, @NotNull Charset charset) { @@ -39,11 +39,9 @@ public class PythonProcessHandler extends KillableColoredProcessHandler { return true; } - public static PythonProcessHandler createProcessHandler(GeneralCommandLine commandLine) + public static PythonProcessHandler createProcessHandler(@NotNull GeneralCommandLine commandLine) throws ExecutionException { - Process p = commandLine.createProcess(); - - return new PythonProcessHandler(p, commandLine); + return new PythonProcessHandler(commandLine); } }