mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix raw type in all implementations of RunProfileState.execute
GitOrigin-RevId: 4ffa418429f3f874af75564706c2db2e201da984
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4d61d4995b
commit
20e3cc86ad
@@ -31,7 +31,7 @@ public class RemoteStateState implements RemoteState {
|
||||
}
|
||||
|
||||
@Override
|
||||
public ExecutionResult execute(final Executor executor, @NotNull final ProgramRunner runner) throws ExecutionException {
|
||||
public ExecutionResult execute(final Executor executor, @NotNull final ProgramRunner<?> runner) throws ExecutionException {
|
||||
ConsoleViewImpl consoleView = new ConsoleViewImpl(myProject, false);
|
||||
RemoteDebugProcessHandler process = new RemoteDebugProcessHandler(myProject, myAutoRestart);
|
||||
consoleView.attachToProcess(process);
|
||||
|
||||
@@ -146,7 +146,7 @@ public abstract class JavaTestFrameworkRunnableState<T extends
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public ExecutionResult execute(@NotNull Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
|
||||
public ExecutionResult execute(@NotNull Executor executor, @NotNull ProgramRunner<?> runner) throws ExecutionException {
|
||||
final RunnerSettings runnerSettings = getRunnerSettings();
|
||||
|
||||
final SMTRunnerConsoleProperties testConsoleProperties = getConfiguration().createTestConsoleProperties(executor);
|
||||
|
||||
+1
-1
@@ -170,7 +170,7 @@ public final class RemoteExternalSystemCommunicationManager implements ExternalS
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public ExecutionResult execute(@NotNull Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
|
||||
public ExecutionResult execute(@NotNull Executor executor, @NotNull ProgramRunner<?> runner) throws ExecutionException {
|
||||
ProcessHandler processHandler = startProcess();
|
||||
return new DefaultExecutionResult(processHandler);
|
||||
}
|
||||
|
||||
+1
-1
@@ -113,7 +113,7 @@ public class ExternalSystemRunnableState extends UserDataHolderBase implements R
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
|
||||
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner<?> runner) throws ExecutionException {
|
||||
if (myProject.isDisposed()) return null;
|
||||
|
||||
String jvmParametersSetup = getJvmParametersSetup();
|
||||
|
||||
@@ -57,7 +57,7 @@ public abstract class CommandLineState implements RunProfileState {
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public ExecutionResult execute(@NotNull final Executor executor, @NotNull final ProgramRunner runner) throws ExecutionException {
|
||||
public ExecutionResult execute(@NotNull final Executor executor, @NotNull final ProgramRunner<?> runner) throws ExecutionException {
|
||||
final ProcessHandler processHandler = startProcess();
|
||||
final ConsoleView console = createConsole(executor);
|
||||
if (console != null) {
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ public final class EmptyRunProfileState implements RunProfileState {
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner runner) {
|
||||
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner<?> runner) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -93,7 +93,7 @@ public class ToolRunProfile implements ModuleRunProfile{
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public ExecutionResult execute(@NotNull final Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
|
||||
public ExecutionResult execute(@NotNull final Executor executor, @NotNull ProgramRunner<?> runner) throws ExecutionException {
|
||||
final ExecutionResult result = super.execute(executor, runner);
|
||||
final ProcessHandler processHandler = result.getProcessHandler();
|
||||
if (processHandler != null) {
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ public class FakeRunConfiguration extends LocatableConfigurationBase {
|
||||
public class FakeRunProfileState implements RunProfileState {
|
||||
@Nullable
|
||||
@Override
|
||||
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner runner) {
|
||||
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner<?> runner) {
|
||||
return new DefaultExecutionResult(null, new FakeProcessHandler(mySurviveSoftKill));
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ public class DeployToServerState<S extends ServerConfiguration, D extends Deploy
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
|
||||
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner<?> runner) throws ExecutionException {
|
||||
final ServerConnection connection = ServerConnectionManager.getInstance().getOrCreateConnection(myServer);
|
||||
final Project project = myEnvironment.getProject();
|
||||
RemoteServersView.getInstance(project).showServerConnection(connection);
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ public class SMTestRunnerConnectionUtil {
|
||||
* // ...
|
||||
*
|
||||
* @Override
|
||||
* public ExecutionResult execute(@NotNull Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
|
||||
* public ExecutionResult execute(@NotNull Executor executor, @NotNull ProgramRunner<?> runner) throws ExecutionException {
|
||||
* ProcessHandler processHandler = startProcess();
|
||||
* RunConfiguration runConfiguration = getConfiguration();
|
||||
* ExecutionEnvironment environment = getEnvironment();
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ public class ImportedTestRunnableState implements RunProfileState, HistoryTestRu
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner runner) {
|
||||
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner<?> runner) {
|
||||
final MyEmptyProcessHandler handler = new MyEmptyProcessHandler();
|
||||
final SMTRunnerConsoleProperties properties = myRunProfile.getProperties();
|
||||
RunProfile configuration;
|
||||
|
||||
@@ -27,7 +27,7 @@ public class AntRunProfileState implements RunProfileState {
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner runner) {
|
||||
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner<?> runner) {
|
||||
final RunProfile profile = myEnvironment.getRunProfile();
|
||||
if (profile instanceof AntRunConfiguration) {
|
||||
final AntRunConfiguration runConfig = (AntRunConfiguration)profile;
|
||||
|
||||
+1
-1
@@ -379,7 +379,7 @@ public class MavenRunConfiguration extends LocatableConfigurationBase implements
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public ExecutionResult execute(@NotNull Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
|
||||
public ExecutionResult execute(@NotNull Executor executor, @NotNull ProgramRunner<?> runner) throws ExecutionException {
|
||||
|
||||
final ProcessHandler processHandler = startProcess();
|
||||
|
||||
|
||||
@@ -794,7 +794,7 @@ public class MavenServerManager extends MavenRemoteObjectWrapper<MavenServer> im
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public ExecutionResult execute(@NotNull Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
|
||||
public ExecutionResult execute(@NotNull Executor executor, @NotNull ProgramRunner<?> runner) throws ExecutionException {
|
||||
ProcessHandler processHandler = startProcess();
|
||||
return new DefaultExecutionResult(processHandler);
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ public class ShRunConfigurationProfileState implements RunProfileState {
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
|
||||
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner<?> runner) throws ExecutionException {
|
||||
Key<Boolean> userDataKey = ShBeforeRunTaskProvider.getRunBeforeUserDataKey(myRunConfiguration);
|
||||
Boolean userDataValue = myProject.getUserData(userDataKey);
|
||||
boolean isRunBeforeConfig = userDataValue != null && userDataValue.booleanValue();
|
||||
|
||||
@@ -362,7 +362,7 @@ public final class PreviewFormAction extends AnAction{
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public ExecutionResult execute(@NotNull final Executor executor, @NotNull final ProgramRunner runner) throws ExecutionException {
|
||||
public ExecutionResult execute(@NotNull final Executor executor, @NotNull final ProgramRunner<?> runner) throws ExecutionException {
|
||||
try {
|
||||
ExecutionResult executionResult = super.execute(executor, runner);
|
||||
executionResult.getProcessHandler().addProcessListener(new ProcessAdapter() {
|
||||
|
||||
@@ -128,7 +128,7 @@ public abstract class PythonCommandLineState extends CommandLineState {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public ExecutionResult execute(@NotNull Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
|
||||
public ExecutionResult execute(@NotNull Executor executor, @NotNull ProgramRunner<?> runner) throws ExecutionException {
|
||||
return execute(executor, (CommandLinePatcher[])null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user