From 41bb1afe0f1517a44dc38337ce2b76f3a99e1249 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Wed, 7 Nov 2018 16:49:54 +0100 Subject: [PATCH] @NotNull BeforeRunTaskProvider.executeTask dataContext --- ...uildArtifactsBeforeRunTaskProviderBase.java | 18 ++---------------- .../compiler/options/CompileStepBeforeRun.java | 2 +- .../CompileStepBeforeRunNoErrorCheck.java | 18 ++---------------- .../options/MakeProjectStepBeforeRun.java | 18 ++---------------- .../ExternalSystemBeforeRunTaskProvider.java | 2 +- .../execution/BeforeRunTaskProvider.java | 2 +- .../RunConfigurationBeforeRunProvider.java | 2 +- .../impl/UnknownBeforeRunTaskProvider.java | 18 ++---------------- .../AbstractToolBeforeRunTaskProvider.java | 18 ++---------------- .../config/impl/AntBeforeRunTaskProvider.java | 18 ++---------------- .../tasks/MavenBeforeRunTasksProvider.java | 18 ++---------------- .../LaunchBrowserBeforeRunTaskProvider.kt | 2 +- 12 files changed, 19 insertions(+), 117 deletions(-) diff --git a/java/compiler/impl/src/com/intellij/packaging/impl/run/BuildArtifactsBeforeRunTaskProviderBase.java b/java/compiler/impl/src/com/intellij/packaging/impl/run/BuildArtifactsBeforeRunTaskProviderBase.java index f41c7707f921..fa90018ff997 100644 --- a/java/compiler/impl/src/com/intellij/packaging/impl/run/BuildArtifactsBeforeRunTaskProviderBase.java +++ b/java/compiler/impl/src/com/intellij/packaging/impl/run/BuildArtifactsBeforeRunTaskProviderBase.java @@ -1,18 +1,4 @@ -/* - * Copyright 2000-2017 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.packaging.impl.run; import com.intellij.execution.BeforeRunTaskProvider; @@ -122,7 +108,7 @@ public abstract class BuildArtifactsBeforeRunTaskProviderBase { return true; } - public abstract boolean executeTask(DataContext context, @NotNull RunConfiguration configuration, @NotNull ExecutionEnvironment env, @NotNull T task); + public abstract boolean executeTask(@NotNull DataContext context, @NotNull RunConfiguration configuration, @NotNull ExecutionEnvironment env, @NotNull T task); /** * @return {@code true} if at most one task may be configured diff --git a/platform/lang-impl/src/com/intellij/execution/impl/RunConfigurationBeforeRunProvider.java b/platform/lang-impl/src/com/intellij/execution/impl/RunConfigurationBeforeRunProvider.java index 6db064e7756c..658091d33625 100644 --- a/platform/lang-impl/src/com/intellij/execution/impl/RunConfigurationBeforeRunProvider.java +++ b/platform/lang-impl/src/com/intellij/execution/impl/RunConfigurationBeforeRunProvider.java @@ -150,7 +150,7 @@ extends BeforeRunTaskProvider