mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-13 15:52:01 +07:00
[platform] API cleanup: mark deprecated unused API for removal (IJPL-156972)
Deprecated APIs which still have internal usage are marked as internal to ensure that new external usages won't appear. GitOrigin-RevId: eedfd26c8fb330df53d94a8768821f7878974100
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f649dbcdc6
commit
269f036ea1
@@ -25,7 +25,7 @@ public final class FileStatusFactory {
|
||||
/**
|
||||
* @deprecated this method is not locale-friendly or plugin unloading-friendly
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
public FileStatus createFileStatus(@NonNls @NotNull String id,
|
||||
@Nls(capitalization = Nls.Capitalization.Sentence) @NotNull String description) {
|
||||
return createFileStatus(id, () -> description, null, null);
|
||||
|
||||
@@ -992,7 +992,6 @@ f:com.intellij.execution.processTools.ProcessExtKt
|
||||
a:com.intellij.execution.rmi.RemoteProcessSupport
|
||||
- sf:LOG:com.intellij.openapi.diagnostic.Logger
|
||||
- <init>(java.lang.Class):V
|
||||
- acquire(java.lang.Object,java.lang.Object):java.lang.Object
|
||||
- acquire(java.lang.Object,java.lang.Object,com.intellij.openapi.progress.ProgressIndicator):java.lang.Object
|
||||
- p:acquireInProcessFactory(java.lang.Object,java.lang.Object):com.intellij.openapi.util.ThrowableComputable
|
||||
- pa:fireModificationCountChanged():V
|
||||
|
||||
@@ -24,6 +24,7 @@ import com.intellij.util.ObjectUtils;
|
||||
import com.intellij.util.concurrency.AppExecutorUtil;
|
||||
import com.intellij.util.concurrency.annotations.RequiresBackgroundThread;
|
||||
import kotlinx.coroutines.Job;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.annotations.TestOnly;
|
||||
@@ -159,6 +160,7 @@ public abstract class RemoteProcessSupport<Target, EntryPoint, Parameters> {
|
||||
/**
|
||||
* @deprecated use acquire(Target, Parameters, ProgressIndicator)
|
||||
*/
|
||||
@ApiStatus.Internal
|
||||
@Deprecated
|
||||
public EntryPoint acquire(@NotNull Target target, @NotNull Parameters configuration) throws Exception {
|
||||
return acquire(target, configuration, null);
|
||||
|
||||
@@ -173,7 +173,7 @@ public final class ProgressIndicatorUtils {
|
||||
/**
|
||||
* @deprecated see {@link ReadTask}
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
public static @NotNull CompletableFuture<?> scheduleWithWriteActionPriority(@NotNull ProgressIndicator progressIndicator,
|
||||
@NotNull Executor executor,
|
||||
@NotNull ReadTask readTask) {
|
||||
|
||||
@@ -2917,7 +2917,6 @@ f:com.intellij.util.SingleAlarm$Companion
|
||||
- f:singleAlarm(I,kotlinx.coroutines.CoroutineScope,java.lang.Runnable):com.intellij.util.SingleAlarm
|
||||
- f:singleAlarm(I,kotlinx.coroutines.CoroutineScope,kotlin.jvm.functions.Function0):com.intellij.util.SingleAlarm
|
||||
f:com.intellij.util.WaitForProgressToShow
|
||||
- s:execute(com.intellij.openapi.progress.ProgressIndicator):V
|
||||
- s:runOrInvokeAndWaitAboveProgress(java.lang.Runnable):V
|
||||
- s:runOrInvokeAndWaitAboveProgress(java.lang.Runnable,com.intellij.openapi.application.ModalityState):V
|
||||
- s:runOrInvokeLaterAboveProgress(java.lang.Runnable,com.intellij.openapi.application.ModalityState,com.intellij.openapi.project.Project):V
|
||||
|
||||
@@ -6,6 +6,7 @@ import com.intellij.openapi.application.ModalityState;
|
||||
import com.intellij.openapi.progress.ProgressIndicator;
|
||||
import com.intellij.openapi.progress.ProgressManager;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -47,6 +48,7 @@ public final class WaitForProgressToShow {
|
||||
*
|
||||
* @deprecated Violates threading assertions in ProgressWindow.
|
||||
*/
|
||||
@ApiStatus.Internal
|
||||
@Deprecated
|
||||
public static void execute(ProgressIndicator pi) {
|
||||
if (pi.isShowing()) {
|
||||
|
||||
@@ -124,7 +124,7 @@ public final class BuildTreeConsoleView implements ConsoleView, DataProvider, Bu
|
||||
/**
|
||||
* @deprecated BuildViewSettingsProvider is not used anymore.
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
public BuildTreeConsoleView(@NotNull Project project,
|
||||
@NotNull BuildDescriptor buildDescriptor,
|
||||
@Nullable ExecutionConsole executionConsole,
|
||||
|
||||
@@ -57,6 +57,7 @@ interface CodeVisionProvider<T> {
|
||||
*
|
||||
* Note that this method is not executed under read action.
|
||||
*/
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
@Deprecated("Use computeCodeVision instead", ReplaceWith("computeCodeVision"))
|
||||
fun computeForEditor(editor: Editor, uiData: T): List<Pair<TextRange, CodeVisionEntry>> = emptyList()
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ public class CreateFileAction extends CreateElementActionBase implements DumbAwa
|
||||
/**
|
||||
* @deprecated Use {@link #CreateFileAction(Supplier, Supplier, Supplier)}
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
public CreateFileAction(@NotNull Supplier<String> dynamicText, @NotNull Supplier<String> dynamicDescription, final Icon icon) {
|
||||
super(dynamicText, dynamicDescription, icon);
|
||||
}
|
||||
|
||||
@@ -580,7 +580,7 @@ public final class RunAnythingPopupUI extends BigPopupUI {
|
||||
* @deprecated this is an internal method, must not be used outside the class
|
||||
*/
|
||||
@SuppressWarnings("DataFlowIssue")
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
public static @NotNull Executor getExecutor() {
|
||||
final Executor runExecutor = DefaultRunExecutor.getRunExecutorInstance();
|
||||
final Executor debugExecutor = ExecutorRegistry.getInstance().getExecutorById(ToolWindowId.DEBUG);
|
||||
|
||||
@@ -35,7 +35,7 @@ public abstract class Reverter {
|
||||
/**
|
||||
* @deprecated always returns empty list
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
public List<String> askUserForProceeding() throws IOException {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
@@ -3039,7 +3039,6 @@ com.intellij.openapi.options.MasterDetails
|
||||
com.intellij.openapi.options.NonDefaultProjectConfigurable
|
||||
a:com.intellij.openapi.options.SchemeExporter
|
||||
- <init>():V
|
||||
- exportScheme(com.intellij.openapi.options.Scheme,java.io.OutputStream):V
|
||||
- exportScheme(com.intellij.openapi.project.Project,com.intellij.openapi.options.Scheme,java.io.OutputStream):V
|
||||
- getDefaultDir(com.intellij.openapi.project.Project):com.intellij.openapi.vfs.VirtualFile
|
||||
- getDefaultFileName(java.lang.String):java.lang.String
|
||||
@@ -5491,7 +5490,6 @@ com.intellij.openapi.wm.WelcomeScreenTab
|
||||
- updateComponent():V
|
||||
com.intellij.openapi.wm.WelcomeTabFactory
|
||||
- sf:WELCOME_TAB_FACTORY_EP:com.intellij.openapi.extensions.ExtensionPointName
|
||||
- createWelcomeTab(com.intellij.openapi.Disposable):com.intellij.openapi.wm.WelcomeScreenTab
|
||||
- createWelcomeTabs(com.intellij.openapi.wm.WelcomeScreen,com.intellij.openapi.Disposable):java.util.List
|
||||
- isApplicable():Z
|
||||
com.intellij.openapi.wm.WindowInfo
|
||||
|
||||
@@ -75,6 +75,7 @@ abstract class ActionManagerEx : ActionManager() {
|
||||
@Internal
|
||||
abstract fun fireAfterActionPerformed(action: AnAction, event: AnActionEvent, result: AnActionResult)
|
||||
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
@Deprecated("Use [ActionUtil.performActionDumbAwareWithCallbacks] instead",
|
||||
ReplaceWith("ActionUtil.performActionDumbAwareWithCallbacks"),
|
||||
DeprecationLevel.ERROR)
|
||||
@@ -83,6 +84,7 @@ abstract class ActionManagerEx : ActionManager() {
|
||||
fireBeforeActionPerformed(action, event)
|
||||
}
|
||||
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
@Deprecated("Use [ActionUtil.performActionDumbAwareWithCallbacks] instead",
|
||||
ReplaceWith("ActionUtil.performActionDumbAwareWithCallbacks"),
|
||||
DeprecationLevel.ERROR)
|
||||
|
||||
@@ -5,6 +5,7 @@ import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.io.FileUtil;
|
||||
import com.intellij.openapi.vfs.VfsUtil;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -19,6 +20,7 @@ public abstract class SchemeExporter<T extends Scheme> {
|
||||
* @deprecated use {@link #exportScheme(Project, Scheme, OutputStream)}.
|
||||
*/
|
||||
@SuppressWarnings({"unused", "RedundantThrows"})
|
||||
@ApiStatus.Internal
|
||||
@Deprecated
|
||||
public void exportScheme(@NotNull T scheme, @NotNull OutputStream outputStream) throws Exception {
|
||||
}
|
||||
|
||||
@@ -67,6 +67,7 @@ suspend fun <T> withBackgroundProgress(
|
||||
return withBackgroundProgress(project, title, cancellation, action)
|
||||
}
|
||||
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
@Deprecated(
|
||||
"Moved to com.intellij.platform.ide.progress",
|
||||
ReplaceWith(
|
||||
@@ -83,6 +84,7 @@ suspend fun <T> withModalProgress(
|
||||
return withModalProgress(project, title, action)
|
||||
}
|
||||
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
@Deprecated(
|
||||
"Moved to com.intellij.platform.ide.progress",
|
||||
ReplaceWith(
|
||||
|
||||
@@ -4,8 +4,8 @@ package com.intellij.openapi.wm;
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.extensions.ExtensionPointName;
|
||||
import com.intellij.util.SmartList;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -21,6 +21,7 @@ public interface WelcomeTabFactory {
|
||||
/**
|
||||
* @deprecated use createWelcomeTabs instead
|
||||
*/
|
||||
@ApiStatus.Internal
|
||||
@Deprecated
|
||||
default WelcomeScreenTab createWelcomeTab(@NotNull Disposable parentDisposable) { return null; }
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ public abstract class SimpleNode extends PresentableNodeDescriptor<Object> imple
|
||||
* @deprecated use {@link #getTemplatePresentation()} to set constant presentation right in node's constructor
|
||||
* or update presentation dynamically by defining {@link #update(PresentationData)}
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
public final void setPlainText(String aText) {
|
||||
clearColoredText();
|
||||
getTemplatePresentation().addText(new ColoredFragment(aText, getPlainAttributes()));
|
||||
|
||||
@@ -1892,7 +1892,6 @@ c:com.intellij.execution.wsl.WSLDistribution
|
||||
- s:mustRunCommandLineWithIjent(com.intellij.execution.wsl.WSLCommandLineOptions):Z
|
||||
- s:neverRunTTYFix(com.intellij.execution.configurations.GeneralCommandLine):com.intellij.execution.configurations.GeneralCommandLine
|
||||
- patchCommandLine(com.intellij.execution.configurations.GeneralCommandLine,com.intellij.openapi.project.Project,com.intellij.execution.wsl.WSLCommandLineOptions):com.intellij.execution.configurations.GeneralCommandLine
|
||||
- patchCommandLine(com.intellij.execution.configurations.GeneralCommandLine,com.intellij.openapi.project.Project,java.lang.String,Z):com.intellij.execution.configurations.GeneralCommandLine
|
||||
- patchProcessHandler(com.intellij.execution.configurations.GeneralCommandLine,com.intellij.execution.process.ProcessHandler):com.intellij.execution.process.ProcessHandler
|
||||
- readReleaseInfo():java.lang.String
|
||||
- resolveSymlink(java.lang.String):java.lang.String
|
||||
@@ -5921,12 +5920,9 @@ com.intellij.ide.wizard.LanguageNewProjectWizardData
|
||||
- com.intellij.ide.wizard.NewProjectWizardBaseData
|
||||
- sf:Companion:com.intellij.ide.wizard.LanguageNewProjectWizardData$Companion
|
||||
- a:getLanguage():java.lang.String
|
||||
- s:getLanguageData(com.intellij.ide.wizard.NewProjectWizardStep):com.intellij.ide.wizard.LanguageNewProjectWizardData
|
||||
- a:getLanguageProperty():com.intellij.openapi.observable.properties.GraphProperty
|
||||
- a:setLanguage(java.lang.String):V
|
||||
f:com.intellij.ide.wizard.LanguageNewProjectWizardData$Companion
|
||||
- f:getKEY():com.intellij.openapi.util.Key
|
||||
- f:getLanguageData(com.intellij.ide.wizard.NewProjectWizardStep):com.intellij.ide.wizard.LanguageNewProjectWizardData
|
||||
f:com.intellij.ide.wizard.NewProjectWizardActivityKey
|
||||
- com.intellij.platform.backend.observation.ActivityKey
|
||||
- sf:INSTANCE:com.intellij.ide.wizard.NewProjectWizardActivityKey
|
||||
|
||||
@@ -212,6 +212,7 @@ public class WSLDistribution implements AbstractWslDistribution {
|
||||
/**
|
||||
* @deprecated use {@link #patchCommandLine(GeneralCommandLine, Project, WSLCommandLineOptions)} instead
|
||||
*/
|
||||
@ApiStatus.Internal
|
||||
@Deprecated
|
||||
public @NotNull <T extends GeneralCommandLine> T patchCommandLine(@NotNull T commandLine,
|
||||
@Nullable Project project,
|
||||
@@ -686,7 +687,7 @@ public class WSLDistribution implements AbstractWslDistribution {
|
||||
* @throws ExecutionException if IP can't be obtained (see logs for more info)
|
||||
* @deprecated use {@link com.intellij.execution.wsl.WslProxy} because Windows IP address is almost always closed by firewall and this method also uses `eth0` address which also might be broken
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
public final @NotNull InetAddress getHostIpAddress() throws ExecutionException {
|
||||
final var hostIpOrException = getValueWithLogging(myLazyHostIp, "host IP");
|
||||
if (hostIpOrException == null) {
|
||||
|
||||
@@ -33,7 +33,7 @@ public interface AuthorizationProvider {
|
||||
* @param url the URL denoting the resource for which the access token is required
|
||||
* @return an access token data or null if the token does not exist. If the token exists, it should always be returned, even if it might be already expired.
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
@Nullable
|
||||
default String getAccessToken(@NotNull String url) {
|
||||
return null;
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.intellij.ide.wizard
|
||||
|
||||
import com.intellij.openapi.observable.properties.GraphProperty
|
||||
import com.intellij.openapi.util.Key
|
||||
import org.jetbrains.annotations.ApiStatus
|
||||
|
||||
/**
|
||||
* Deprecated
|
||||
@@ -28,10 +29,11 @@ interface LanguageNewProjectWizardData : NewProjectWizardBaseData {
|
||||
var language: String
|
||||
|
||||
companion object {
|
||||
|
||||
@ApiStatus.Internal
|
||||
@Deprecated("See LanguageNewProjectWizardData documentation for details")
|
||||
val KEY: Key<LanguageNewProjectWizardData> = Key.create(LanguageNewProjectWizardData::class.java.name)
|
||||
|
||||
@get:ApiStatus.Internal
|
||||
@JvmStatic
|
||||
@Deprecated("See LanguageNewProjectWizardData documentation for details")
|
||||
val NewProjectWizardStep.languageData: LanguageNewProjectWizardData?
|
||||
|
||||
@@ -31,6 +31,7 @@ import javax.swing.JLabel
|
||||
|
||||
val WizardContext.projectOrDefault: Project get() = project ?: ProjectManager.getInstance().defaultProject
|
||||
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
@Deprecated(
|
||||
message = "Use NewProjectWizardChainStep.nextStep instead",
|
||||
replaceWith = ReplaceWith(
|
||||
@@ -44,6 +45,7 @@ fun <T1, T2, T3> T1.chain(f1: (T1) -> T2, f2: (T2) -> T3): NewProjectWizardStep
|
||||
.nextStep(f2)
|
||||
}
|
||||
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
@Deprecated(
|
||||
message = "Use NewProjectWizardChainStep.nextStep instead",
|
||||
replaceWith = ReplaceWith(
|
||||
|
||||
@@ -28,7 +28,7 @@ import java.nio.file.Path;
|
||||
|
||||
public final class FileDeleteAction extends FileChooserAction {
|
||||
/** @deprecated please use {@link FileDeleteAction#FileDeleteAction(String, String, Icon)} instead */
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
public FileDeleteAction() { }
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
|
||||
@@ -38,12 +38,6 @@ f:com.intellij.openapi.rd.util.BackgroundProgressCoroutineUtilKt
|
||||
a:com.intellij.openapi.rd.util.ProgressCoroutineScope
|
||||
- <init>(com.intellij.openapi.progress.ProgressIndicator):V
|
||||
- f:getIndicator():com.intellij.openapi.progress.ProgressIndicator
|
||||
f:com.intellij.openapi.rd.util.ProgressCoroutineScopeLegacy
|
||||
- com.intellij.openapi.rd.util.ProgressCoroutineScope
|
||||
- sf:Companion:com.intellij.openapi.rd.util.ProgressCoroutineScopeLegacy$Companion
|
||||
- f:withDetails(java.lang.String,kotlin.jvm.functions.Function1):V
|
||||
- f:withText(java.lang.String,kotlin.jvm.functions.Function1):V
|
||||
f:com.intellij.openapi.rd.util.ProgressCoroutineScopeLegacy$Companion
|
||||
f:com.intellij.openapi.rd.util.RdCoroutinesUtilKt
|
||||
- sf:launchBackground(com.jetbrains.rd.util.lifetime.Lifetime,kotlin.coroutines.CoroutineContext,kotlinx.coroutines.CoroutineStart,kotlin.jvm.functions.Function2):kotlinx.coroutines.Job
|
||||
- bs:launchBackground$default(com.jetbrains.rd.util.lifetime.Lifetime,kotlin.coroutines.CoroutineContext,kotlinx.coroutines.CoroutineStart,kotlin.jvm.functions.Function2,I,java.lang.Object):kotlinx.coroutines.Job
|
||||
|
||||
@@ -413,6 +413,7 @@ private class BridgeIndicatorEx(val coroutineContext: CoroutineContext) : Abstra
|
||||
}
|
||||
}
|
||||
|
||||
@ApiStatus.Internal
|
||||
@Deprecated("It is a legacy api")
|
||||
class ProgressCoroutineScopeLegacy private constructor(indicator: ProgressIndicator) : ProgressCoroutineScope(indicator) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user