From 269f036ea190ce347f044812477fa6879dbb5bd5 Mon Sep 17 00:00:00 2001 From: Nikolay Chashnikov Date: Thu, 10 Oct 2024 20:57:53 +0200 Subject: [PATCH] [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 --- .../src/com/intellij/openapi/vcs/FileStatusFactory.java | 2 +- platform/execution/api-dump-unreviewed.txt | 1 - .../com/intellij/execution/rmi/RemoteProcessSupport.java | 2 ++ .../openapi/progress/util/ProgressIndicatorUtils.java | 2 +- platform/ide-core/api-dump-unreviewed.txt | 1 - .../src/com/intellij/util/WaitForProgressToShow.java | 2 ++ .../src/com/intellij/build/BuildTreeConsoleView.java | 2 +- .../intellij/codeInsight/codeVision/CodeVisionProvider.kt | 1 + .../src/com/intellij/ide/actions/CreateFileAction.java | 2 +- .../ide/actions/runAnything/RunAnythingPopupUI.java | 2 +- .../intellij/history/integration/revertion/Reverter.java | 2 +- platform/platform-api/api-dump-unreviewed.txt | 2 -- .../com/intellij/openapi/actionSystem/ex/ActionManagerEx.kt | 2 ++ .../src/com/intellij/openapi/options/SchemeExporter.java | 2 ++ .../platform-api/src/com/intellij/openapi/progress/tasks.kt | 2 ++ .../src/com/intellij/openapi/wm/WelcomeTabFactory.java | 3 ++- .../src/com/intellij/ui/treeStructure/SimpleNode.java | 2 +- platform/platform-impl/api-dump-unreviewed.txt | 4 ---- .../src/com/intellij/execution/wsl/WSLDistribution.java | 3 ++- .../src/com/intellij/ide/impl/AuthorizationProvider.java | 2 +- .../com/intellij/ide/wizard/LanguageNewProjectWizardData.kt | 4 +++- .../src/com/intellij/ide/wizard/UIWizardUtil.kt | 2 ++ .../openapi/fileChooser/actions/FileDeleteAction.java | 2 +- platform/rd-platform-community/api-dump.txt | 6 ------ .../openapi/rd/util/BackgroundProgressCoroutineUtil.kt | 1 + 25 files changed, 30 insertions(+), 26 deletions(-) diff --git a/platform/editor-ui-api/src/com/intellij/openapi/vcs/FileStatusFactory.java b/platform/editor-ui-api/src/com/intellij/openapi/vcs/FileStatusFactory.java index 5cb7ee731cb8..838d3a4de50b 100644 --- a/platform/editor-ui-api/src/com/intellij/openapi/vcs/FileStatusFactory.java +++ b/platform/editor-ui-api/src/com/intellij/openapi/vcs/FileStatusFactory.java @@ -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); diff --git a/platform/execution/api-dump-unreviewed.txt b/platform/execution/api-dump-unreviewed.txt index 58cfd33c05df..e826f6496864 100644 --- a/platform/execution/api-dump-unreviewed.txt +++ b/platform/execution/api-dump-unreviewed.txt @@ -992,7 +992,6 @@ f:com.intellij.execution.processTools.ProcessExtKt a:com.intellij.execution.rmi.RemoteProcessSupport - sf:LOG:com.intellij.openapi.diagnostic.Logger - (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 diff --git a/platform/execution/src/com/intellij/execution/rmi/RemoteProcessSupport.java b/platform/execution/src/com/intellij/execution/rmi/RemoteProcessSupport.java index f94e0a4d3d56..afbfaa3516e7 100644 --- a/platform/execution/src/com/intellij/execution/rmi/RemoteProcessSupport.java +++ b/platform/execution/src/com/intellij/execution/rmi/RemoteProcessSupport.java @@ -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 { /** * @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); diff --git a/platform/ide-core-impl/src/com/intellij/openapi/progress/util/ProgressIndicatorUtils.java b/platform/ide-core-impl/src/com/intellij/openapi/progress/util/ProgressIndicatorUtils.java index 25a1ad7b48f3..4705df64fc32 100644 --- a/platform/ide-core-impl/src/com/intellij/openapi/progress/util/ProgressIndicatorUtils.java +++ b/platform/ide-core-impl/src/com/intellij/openapi/progress/util/ProgressIndicatorUtils.java @@ -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) { diff --git a/platform/ide-core/api-dump-unreviewed.txt b/platform/ide-core/api-dump-unreviewed.txt index 518e657624f0..c1d62b8bfa62 100644 --- a/platform/ide-core/api-dump-unreviewed.txt +++ b/platform/ide-core/api-dump-unreviewed.txt @@ -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 diff --git a/platform/ide-core/src/com/intellij/util/WaitForProgressToShow.java b/platform/ide-core/src/com/intellij/util/WaitForProgressToShow.java index 2b5e505a9221..1e18f4981698 100644 --- a/platform/ide-core/src/com/intellij/util/WaitForProgressToShow.java +++ b/platform/ide-core/src/com/intellij/util/WaitForProgressToShow.java @@ -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()) { diff --git a/platform/lang-impl/src/com/intellij/build/BuildTreeConsoleView.java b/platform/lang-impl/src/com/intellij/build/BuildTreeConsoleView.java index 4daa5142eb5b..436deaacd32b 100644 --- a/platform/lang-impl/src/com/intellij/build/BuildTreeConsoleView.java +++ b/platform/lang-impl/src/com/intellij/build/BuildTreeConsoleView.java @@ -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, diff --git a/platform/lang-impl/src/com/intellij/codeInsight/codeVision/CodeVisionProvider.kt b/platform/lang-impl/src/com/intellij/codeInsight/codeVision/CodeVisionProvider.kt index 1f9189f09d47..a2aeb363b347 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/codeVision/CodeVisionProvider.kt +++ b/platform/lang-impl/src/com/intellij/codeInsight/codeVision/CodeVisionProvider.kt @@ -57,6 +57,7 @@ interface CodeVisionProvider { * * 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> = emptyList() diff --git a/platform/lang-impl/src/com/intellij/ide/actions/CreateFileAction.java b/platform/lang-impl/src/com/intellij/ide/actions/CreateFileAction.java index 7fca9dd80b67..a719865f32b5 100644 --- a/platform/lang-impl/src/com/intellij/ide/actions/CreateFileAction.java +++ b/platform/lang-impl/src/com/intellij/ide/actions/CreateFileAction.java @@ -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 dynamicText, @NotNull Supplier dynamicDescription, final Icon icon) { super(dynamicText, dynamicDescription, icon); } diff --git a/platform/lang-impl/src/com/intellij/ide/actions/runAnything/RunAnythingPopupUI.java b/platform/lang-impl/src/com/intellij/ide/actions/runAnything/RunAnythingPopupUI.java index 90a556f4967f..d01ced527e08 100644 --- a/platform/lang-impl/src/com/intellij/ide/actions/runAnything/RunAnythingPopupUI.java +++ b/platform/lang-impl/src/com/intellij/ide/actions/runAnything/RunAnythingPopupUI.java @@ -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); diff --git a/platform/lvcs-impl/src/com/intellij/history/integration/revertion/Reverter.java b/platform/lvcs-impl/src/com/intellij/history/integration/revertion/Reverter.java index 81b90ecbe95f..c5799a1f6d25 100644 --- a/platform/lvcs-impl/src/com/intellij/history/integration/revertion/Reverter.java +++ b/platform/lvcs-impl/src/com/intellij/history/integration/revertion/Reverter.java @@ -35,7 +35,7 @@ public abstract class Reverter { /** * @deprecated always returns empty list */ - @Deprecated + @Deprecated(forRemoval = true) public List askUserForProceeding() throws IOException { return Collections.emptyList(); } diff --git a/platform/platform-api/api-dump-unreviewed.txt b/platform/platform-api/api-dump-unreviewed.txt index 73a3ba276d03..58784adeb520 100644 --- a/platform/platform-api/api-dump-unreviewed.txt +++ b/platform/platform-api/api-dump-unreviewed.txt @@ -3039,7 +3039,6 @@ com.intellij.openapi.options.MasterDetails com.intellij.openapi.options.NonDefaultProjectConfigurable a:com.intellij.openapi.options.SchemeExporter - ():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 diff --git a/platform/platform-api/src/com/intellij/openapi/actionSystem/ex/ActionManagerEx.kt b/platform/platform-api/src/com/intellij/openapi/actionSystem/ex/ActionManagerEx.kt index aba36a48123d..d0b76e3f3dad 100644 --- a/platform/platform-api/src/com/intellij/openapi/actionSystem/ex/ActionManagerEx.kt +++ b/platform/platform-api/src/com/intellij/openapi/actionSystem/ex/ActionManagerEx.kt @@ -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) diff --git a/platform/platform-api/src/com/intellij/openapi/options/SchemeExporter.java b/platform/platform-api/src/com/intellij/openapi/options/SchemeExporter.java index e7157c046e91..3933ed9e1f35 100644 --- a/platform/platform-api/src/com/intellij/openapi/options/SchemeExporter.java +++ b/platform/platform-api/src/com/intellij/openapi/options/SchemeExporter.java @@ -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 { * @deprecated use {@link #exportScheme(Project, Scheme, OutputStream)}. */ @SuppressWarnings({"unused", "RedundantThrows"}) + @ApiStatus.Internal @Deprecated public void exportScheme(@NotNull T scheme, @NotNull OutputStream outputStream) throws Exception { } diff --git a/platform/platform-api/src/com/intellij/openapi/progress/tasks.kt b/platform/platform-api/src/com/intellij/openapi/progress/tasks.kt index 83badee56820..bcb592d536bf 100644 --- a/platform/platform-api/src/com/intellij/openapi/progress/tasks.kt +++ b/platform/platform-api/src/com/intellij/openapi/progress/tasks.kt @@ -67,6 +67,7 @@ suspend fun withBackgroundProgress( return withBackgroundProgress(project, title, cancellation, action) } +@ApiStatus.ScheduledForRemoval @Deprecated( "Moved to com.intellij.platform.ide.progress", ReplaceWith( @@ -83,6 +84,7 @@ suspend fun withModalProgress( return withModalProgress(project, title, action) } +@ApiStatus.ScheduledForRemoval @Deprecated( "Moved to com.intellij.platform.ide.progress", ReplaceWith( diff --git a/platform/platform-api/src/com/intellij/openapi/wm/WelcomeTabFactory.java b/platform/platform-api/src/com/intellij/openapi/wm/WelcomeTabFactory.java index ed98040a7e01..8bf62ef3e9e1 100644 --- a/platform/platform-api/src/com/intellij/openapi/wm/WelcomeTabFactory.java +++ b/platform/platform-api/src/com/intellij/openapi/wm/WelcomeTabFactory.java @@ -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; } diff --git a/platform/platform-api/src/com/intellij/ui/treeStructure/SimpleNode.java b/platform/platform-api/src/com/intellij/ui/treeStructure/SimpleNode.java index 211866277a16..350ce6aaba1a 100644 --- a/platform/platform-api/src/com/intellij/ui/treeStructure/SimpleNode.java +++ b/platform/platform-api/src/com/intellij/ui/treeStructure/SimpleNode.java @@ -112,7 +112,7 @@ public abstract class SimpleNode extends PresentableNodeDescriptor 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())); diff --git a/platform/platform-impl/api-dump-unreviewed.txt b/platform/platform-impl/api-dump-unreviewed.txt index 855bb3de3319..5160b48b6f77 100644 --- a/platform/platform-impl/api-dump-unreviewed.txt +++ b/platform/platform-impl/api-dump-unreviewed.txt @@ -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 diff --git a/platform/platform-impl/src/com/intellij/execution/wsl/WSLDistribution.java b/platform/platform-impl/src/com/intellij/execution/wsl/WSLDistribution.java index 9d64c8258e9c..a6350bec88b9 100644 --- a/platform/platform-impl/src/com/intellij/execution/wsl/WSLDistribution.java +++ b/platform/platform-impl/src/com/intellij/execution/wsl/WSLDistribution.java @@ -212,6 +212,7 @@ public class WSLDistribution implements AbstractWslDistribution { /** * @deprecated use {@link #patchCommandLine(GeneralCommandLine, Project, WSLCommandLineOptions)} instead */ + @ApiStatus.Internal @Deprecated public @NotNull 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) { diff --git a/platform/platform-impl/src/com/intellij/ide/impl/AuthorizationProvider.java b/platform/platform-impl/src/com/intellij/ide/impl/AuthorizationProvider.java index 089cd0843423..d086aa3d929a 100644 --- a/platform/platform-impl/src/com/intellij/ide/impl/AuthorizationProvider.java +++ b/platform/platform-impl/src/com/intellij/ide/impl/AuthorizationProvider.java @@ -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; diff --git a/platform/platform-impl/src/com/intellij/ide/wizard/LanguageNewProjectWizardData.kt b/platform/platform-impl/src/com/intellij/ide/wizard/LanguageNewProjectWizardData.kt index 7f6e5c9283c7..5af2c08b367f 100644 --- a/platform/platform-impl/src/com/intellij/ide/wizard/LanguageNewProjectWizardData.kt +++ b/platform/platform-impl/src/com/intellij/ide/wizard/LanguageNewProjectWizardData.kt @@ -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 = Key.create(LanguageNewProjectWizardData::class.java.name) + @get:ApiStatus.Internal @JvmStatic @Deprecated("See LanguageNewProjectWizardData documentation for details") val NewProjectWizardStep.languageData: LanguageNewProjectWizardData? diff --git a/platform/platform-impl/src/com/intellij/ide/wizard/UIWizardUtil.kt b/platform/platform-impl/src/com/intellij/ide/wizard/UIWizardUtil.kt index e9920826bd3c..242b7f363b02 100644 --- a/platform/platform-impl/src/com/intellij/ide/wizard/UIWizardUtil.kt +++ b/platform/platform-impl/src/com/intellij/ide/wizard/UIWizardUtil.kt @@ -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.chain(f1: (T1) -> T2, f2: (T2) -> T3): NewProjectWizardStep .nextStep(f2) } +@ApiStatus.ScheduledForRemoval @Deprecated( message = "Use NewProjectWizardChainStep.nextStep instead", replaceWith = ReplaceWith( diff --git a/platform/platform-impl/src/com/intellij/openapi/fileChooser/actions/FileDeleteAction.java b/platform/platform-impl/src/com/intellij/openapi/fileChooser/actions/FileDeleteAction.java index 0a361915eb46..5d333460822c 100644 --- a/platform/platform-impl/src/com/intellij/openapi/fileChooser/actions/FileDeleteAction.java +++ b/platform/platform-impl/src/com/intellij/openapi/fileChooser/actions/FileDeleteAction.java @@ -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") diff --git a/platform/rd-platform-community/api-dump.txt b/platform/rd-platform-community/api-dump.txt index 98e24f984a14..fa52bf6d0a8b 100644 --- a/platform/rd-platform-community/api-dump.txt +++ b/platform/rd-platform-community/api-dump.txt @@ -38,12 +38,6 @@ f:com.intellij.openapi.rd.util.BackgroundProgressCoroutineUtilKt a:com.intellij.openapi.rd.util.ProgressCoroutineScope - (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 diff --git a/platform/rd-platform-community/src/com/intellij/openapi/rd/util/BackgroundProgressCoroutineUtil.kt b/platform/rd-platform-community/src/com/intellij/openapi/rd/util/BackgroundProgressCoroutineUtil.kt index c91829d0aedf..b47e73cc883e 100644 --- a/platform/rd-platform-community/src/com/intellij/openapi/rd/util/BackgroundProgressCoroutineUtil.kt +++ b/platform/rd-platform-community/src/com/intellij/openapi/rd/util/BackgroundProgressCoroutineUtil.kt @@ -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) {