mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
added NotNull annotations for EA-28713 - NPE: DefaultJavaProgramRunner.addDefaultActions
This commit is contained in:
+1
@@ -37,6 +37,7 @@ public abstract class JavaCommandLineState extends CommandLineState implements J
|
||||
return myParams;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
protected OSProcessHandler startProcess() throws ExecutionException {
|
||||
return JavaCommandLineStateUtil.startProcess(createCommandLine());
|
||||
}
|
||||
|
||||
+1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user