From 901d23de0d47629c65fdfd915074e1ddd6b65cc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Thu, 13 Jun 2019 12:29:31 +0200 Subject: [PATCH] [analysis-impl] fix deprecation problems GitOrigin-RevId: f3fd91e59112eacc4f43c3caccb8f09d0da417e5 --- .../codeInsight/daemon/impl/quickfix/QuickFixAction.java | 4 ++-- .../profile/codeInspection/InspectionProfileManager.java | 3 +++ .../codeInspection/InspectionProjectProfileManager.java | 3 +++ .../resolve/reference/impl/providers/FileReferenceSet.java | 3 ++- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/platform/analysis-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/QuickFixAction.java b/platform/analysis-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/QuickFixAction.java index 1b62ac6e314d..d9978b306ab0 100644 --- a/platform/analysis-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/QuickFixAction.java +++ b/platform/analysis-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/QuickFixAction.java @@ -1,4 +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-2019 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.codeInsight.daemon.impl.quickfix; @@ -25,7 +25,7 @@ public final class QuickFixAction { registerQuickFixAction(info, null, action); } - /** This is used by TeamCity plugin */ + /** @deprecated This is used by TeamCity plugin */ @Deprecated public static void registerQuickFixAction(@Nullable HighlightInfo info, @Nullable IntentionAction action, diff --git a/platform/analysis-impl/src/com/intellij/profile/codeInspection/InspectionProfileManager.java b/platform/analysis-impl/src/com/intellij/profile/codeInspection/InspectionProfileManager.java index e82bef088fe6..4c77980198d4 100644 --- a/platform/analysis-impl/src/com/intellij/profile/codeInspection/InspectionProfileManager.java +++ b/platform/analysis-impl/src/com/intellij/profile/codeInspection/InspectionProfileManager.java @@ -49,6 +49,9 @@ public interface InspectionProfileManager { @NotNull SeverityRegistrar getSeverityRegistrar(); + /** + * @deprecated use {@link #getSeverityRegistrar()} + */ @NotNull @Deprecated default SeverityRegistrar getOwnSeverityRegistrar() { diff --git a/platform/analysis-impl/src/com/intellij/profile/codeInspection/InspectionProjectProfileManager.java b/platform/analysis-impl/src/com/intellij/profile/codeInspection/InspectionProjectProfileManager.java index d3dddbac2b58..fefb1e2c70f2 100644 --- a/platform/analysis-impl/src/com/intellij/profile/codeInspection/InspectionProjectProfileManager.java +++ b/platform/analysis-impl/src/com/intellij/profile/codeInspection/InspectionProjectProfileManager.java @@ -29,6 +29,9 @@ public abstract class InspectionProjectProfileManager implements InspectionProfi return project.getComponent(ProjectInspectionProfileManager.class); } + /** + * @deprecated use {@link #getCurrentProfile()} + */ @NotNull @Deprecated public InspectionProfile getInspectionProfile() { diff --git a/platform/analysis-impl/src/com/intellij/psi/impl/source/resolve/reference/impl/providers/FileReferenceSet.java b/platform/analysis-impl/src/com/intellij/psi/impl/source/resolve/reference/impl/providers/FileReferenceSet.java index 61c2e31737f7..d9af2981d11f 100644 --- a/platform/analysis-impl/src/com/intellij/psi/impl/source/resolve/reference/impl/providers/FileReferenceSet.java +++ b/platform/analysis-impl/src/com/intellij/psi/impl/source/resolve/reference/impl/providers/FileReferenceSet.java @@ -104,7 +104,8 @@ public class FileReferenceSet { } /** - * This should be removed. Please use {@link FileReference#getContexts()} instead. + * This should be removed. + * @deprecated use {@link FileReference#getContexts()} instead. */ @Deprecated protected Collection getExtraContexts() {