cleanup
authorVladimir Krivosheev <vladimir.krivosheev@jetbrains.com>
Tue, 8 Nov 2016 10:10:27 +0000 (11:10 +0100)
committerVladimir Krivosheev <vladimir.krivosheev@jetbrains.com>
Tue, 8 Nov 2016 13:04:52 +0000 (14:04 +0100)
platform/lang-api/src/com/intellij/execution/runners/AsyncGenericProgramRunner.java
platform/lang-api/src/com/intellij/execution/runners/GenericProgramRunner.java

index a414e051c09f0d7ff7abab664ec24a717c9d7c04..2c868c717e635f991747e1aefbe4a6894200849d 100644 (file)
@@ -31,9 +31,9 @@ import org.jetbrains.concurrency.Promise;
  */
 public abstract class AsyncGenericProgramRunner<Settings extends RunnerSettings> extends BaseProgramRunner<Settings> {
   @Override
-  protected final void execute(@NotNull final ExecutionEnvironment environment,
-                               @Nullable final Callback callback,
-                               @NotNull final RunProfileState state) throws ExecutionException {
+  protected final void execute(@NotNull ExecutionEnvironment environment,
+                               @Nullable Callback callback,
+                               @NotNull RunProfileState state) throws ExecutionException {
     prepare(environment, state)
       .done(result -> UIUtil.invokeLaterIfNeeded(() -> {
         if (!environment.getProject().isDisposed()) {
index ab42e4cc05508fe79838aad57cbce67be9519553..b11013ba4273f4a35a23efb2e129f5aa9618f899 100644 (file)
@@ -24,15 +24,12 @@ import com.intellij.execution.configurations.RunnerSettings;
 import com.intellij.execution.ui.RunContentDescriptor;
 import com.intellij.openapi.actionSystem.DataKey;
 import com.intellij.openapi.project.Project;
-import org.jetbrains.annotations.NonNls;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
 
 public abstract class GenericProgramRunner<Settings extends RunnerSettings> extends BaseProgramRunner<Settings> {
   @Deprecated
   public static final DataKey<RunContentDescriptor> CONTENT_TO_REUSE_DATA_KEY = DataKey.create("contentToReuse");
-  @Deprecated @NonNls
-  public static final String CONTENT_TO_REUSE = CONTENT_TO_REUSE_DATA_KEY.getName();
 
   @Override
   protected void execute(@NotNull ExecutionEnvironment environment, @Nullable final Callback callback, @NotNull RunProfileState state)
@@ -47,12 +44,14 @@ public abstract class GenericProgramRunner<Settings extends RunnerSettings> exte
 
   @Nullable
   protected RunContentDescriptor doExecute(@NotNull RunProfileState state, @NotNull ExecutionEnvironment environment) throws ExecutionException {
+    //noinspection deprecation
     return doExecute(environment.getProject(), state, environment.getContentToReuse(), environment);
   }
 
   /**
    * @deprecated to remove in IDEA 16
    */
+  @SuppressWarnings({"unused", "DeprecatedIsStillUsed"})
   @Deprecated
   @Nullable
   protected RunContentDescriptor doExecute(@NotNull Project project,