added NotNull annotations for EA-28713 - NPE: DefaultJavaProgramRunner.addDefaultActions

This commit is contained in:
nik
2011-08-09 11:25:25 +04:00
parent c3e24a2c3b
commit 2f10237569
12 changed files with 12 additions and 5 deletions
@@ -37,6 +37,7 @@ public abstract class JavaCommandLineState extends CommandLineState implements J
return myParams;
}
@NotNull
protected OSProcessHandler startProcess() throws ExecutionException {
return JavaCommandLineStateUtil.startProcess(createCommandLine());
}
@@ -28,6 +28,7 @@ public class JavaCommandLineStateUtil {
private JavaCommandLineStateUtil() {
}
@NotNull
public static OSProcessHandler startProcess(@NotNull final GeneralCommandLine commandLine) throws ExecutionException {
final DefaultJavaProcessHandler processHandler = new DefaultJavaProcessHandler(commandLine);
ProcessTerminatedListener.attach(processHandler);