make public to ensure that can be called from inlined method

This commit is contained in:
Vladimir Krivosheev
2018-09-26 13:44:17 +02:00
parent a510d4173a
commit b42823c43f
5 changed files with 9 additions and 13 deletions
@@ -27,7 +27,7 @@ public abstract class RunConfigurationExtension extends RunConfigurationExtensio
@NotNull String runnerId) throws ExecutionException {}
@Override
protected boolean isEnabledFor(@NotNull RunConfigurationBase applicableConfiguration, @Nullable RunnerSettings runnerSettings) {
public boolean isEnabledFor(@NotNull RunConfigurationBase applicableConfiguration, @Nullable RunnerSettings runnerSettings) {
return true;
}
@@ -114,7 +114,7 @@ public class TestDiscoveryExtension extends RunConfigurationExtension {
}
@Override
protected boolean isApplicableFor(@NotNull final RunConfigurationBase configuration) {
public boolean isApplicableFor(@NotNull final RunConfigurationBase configuration) {
return configuration instanceof JavaTestConfigurationBase && Registry.is(TEST_DISCOVERY_REGISTRY_KEY);
}
@@ -129,7 +129,7 @@ public class TestDiscoveryExtension extends RunConfigurationExtension {
}
private static final Object ourTracesLock = new Object();
private static void processTracesFile(JavaTestConfigurationWithDiscoverySupport configuration) {
final String tracesFilePath = getTraceFilePath(configuration);
final TestDiscoveryIndex testDiscoveryIndex = TestDiscoveryIndex.getInstance(configuration.getProject());
@@ -76,7 +76,7 @@ public abstract class RunConfigurationExtensionBase<T extends RunConfigurationBa
* @return True if extension in general applicable to given run configuration - just to attach settings tab, etc. But extension may be
* turned off in its settings. E.g. RCov in general available for given run configuration, but may be turned off.
*/
protected abstract boolean isApplicableFor(@NotNull final T configuration);
public abstract boolean isApplicableFor(@NotNull final T configuration);
/**
*
@@ -84,7 +84,7 @@ public abstract class RunConfigurationExtensionBase<T extends RunConfigurationBa
* @return True if extension is turned on in configuration extension settings.
* E.g. RCov is turned on for given run configuration.
*/
protected abstract boolean isEnabledFor(@NotNull final T applicableConfiguration, @Nullable RunnerSettings runnerSettings);
public abstract boolean isEnabledFor(@NotNull final T applicableConfiguration, @Nullable RunnerSettings runnerSettings);
/**
* Patches the command line of the process about to be started by the underlying run configuration.
@@ -1,6 +1,4 @@
/*
* Copyright 2000-2017 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.
*/
// 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.execution.coverage;
import com.intellij.coverage.*;
@@ -226,7 +224,7 @@ public class CoverageJavaRunConfigurationExtension extends RunConfigurationExten
}
@Override
protected boolean isApplicableFor(@NotNull final RunConfigurationBase configuration) {
public boolean isApplicableFor(@NotNull final RunConfigurationBase configuration) {
return CoverageEnabledConfiguration.isApplicableTo(configuration);
}
@@ -1,6 +1,4 @@
/*
* Copyright 2000-2017 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.
*/
// 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.uiDesigner.snapShooter;
@@ -80,7 +78,7 @@ public class SnapShooterConfigurationExtension extends RunConfigurationExtension
}
@Override
protected boolean isApplicableFor(@NotNull RunConfigurationBase configuration) {
public boolean isApplicableFor(@NotNull RunConfigurationBase configuration) {
return configuration instanceof ApplicationConfiguration;
}