mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
[java] API cleanup: mark for removal deprecated unused API (IJPL-178044)
GitOrigin-RevId: 2aa137195af375b84adec0b7c350d6ae256eef53
This commit is contained in:
committed by
intellij-monorepo-bot
parent
52b3a1798b
commit
c2d557e204
@@ -128,7 +128,7 @@ public abstract class DebuggerUtilsEx extends DebuggerUtils {
|
||||
* Does not handle array types correctly
|
||||
* @deprecated use {@link DebuggerUtils#instanceOf(Type, String)}
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
public static boolean isAssignableFrom(@NotNull String baseQualifiedName, @NotNull Type checkedType) {
|
||||
if (checkedType instanceof ReferenceType) {
|
||||
if (CommonClassNames.JAVA_LANG_OBJECT.equals(baseQualifiedName)) {
|
||||
|
||||
@@ -253,7 +253,7 @@ public class BreakpointManager {
|
||||
/**
|
||||
* @deprecated use {@link #addExceptionBreakpoint(String)}
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
public @Nullable ExceptionBreakpoint addExceptionBreakpoint(final @NotNull String exceptionClassName, final String packageName) {
|
||||
return addExceptionBreakpoint(exceptionClassName);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ public class JavaExceptionBreakpointProperties extends JavaBreakpointProperties<
|
||||
/**
|
||||
* @deprecated use {@link #JavaExceptionBreakpointProperties(String)}
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
public JavaExceptionBreakpointProperties(String qualifiedName, String packageName) {
|
||||
myQualifiedName = qualifiedName;
|
||||
myPackageName = packageName;
|
||||
|
||||
@@ -4,8 +4,9 @@ package com.intellij.ide.projectWizard.generators
|
||||
import com.intellij.ide.wizard.NewProjectWizardStep
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.util.text.nullize
|
||||
import com.intellij.ide.projectWizard.generators.withJavaSampleCodeAsset as withJavaSampleCodeAssetImpl
|
||||
import org.jetbrains.annotations.ApiStatus
|
||||
import com.intellij.ide.projectWizard.generators.prepareJavaSampleOnboardingTips as prepareJavaSampleOnboardingTipsImpl
|
||||
import com.intellij.ide.projectWizard.generators.withJavaSampleCodeAsset as withJavaSampleCodeAssetImpl
|
||||
|
||||
@Deprecated("Use AssetsJava util instead")
|
||||
abstract class AssetsJavaNewProjectWizardStep(parent: NewProjectWizardStep) : AssetsOnboardingTipsProjectWizardStep(parent) {
|
||||
@@ -17,7 +18,7 @@ abstract class AssetsJavaNewProjectWizardStep(parent: NewProjectWizardStep) : As
|
||||
prepareJavaSampleOnboardingTipsImpl(project)
|
||||
|
||||
companion object {
|
||||
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
@Deprecated("Use AssetsJava util instead")
|
||||
fun createJavaSourcePath(sourceRootPath: String, aPackage: String, fileName: String) =
|
||||
AssetsJava.getJavaSampleSourcePath(sourceRootPath, aPackage.nullize(), fileName)
|
||||
|
||||
@@ -224,7 +224,7 @@ public final class ClassUtils {
|
||||
* @return containing class for {@code element} ignoring {@link PsiAnonymousClass} if {@code element} is located in corresponding expression list
|
||||
* @deprecated use {@link PsiUtil#getContainingClass(PsiElement)}
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
public static @Nullable PsiClass getContainingClass(PsiElement element) {
|
||||
return PsiUtil.getContainingClass(element);
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ import com.intellij.psi.tree.TokenSet;
|
||||
import com.intellij.psi.util.CachedValueProvider;
|
||||
import com.intellij.psi.util.CachedValuesManager;
|
||||
import com.intellij.psi.util.PsiUtil;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.annotations.PropertyKey;
|
||||
@@ -69,6 +70,7 @@ public final class JavaParserUtil {
|
||||
/**
|
||||
* @deprecated please, use {@link WhiteSpaceAndCommentSetHolder#INSTANCE} instead
|
||||
*/
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
@Deprecated
|
||||
public static final WhitespacesAndCommentsBinder PRECEDING_COMMENT_BINDER =
|
||||
WhiteSpaceAndCommentSetHolder.INSTANCE.getPrecedingCommentBinder(LanguageLevel.HIGHEST);
|
||||
@@ -76,6 +78,7 @@ public final class JavaParserUtil {
|
||||
/**
|
||||
* @deprecated please, use {@link WhiteSpaceAndCommentSetHolder#INSTANCE} instead
|
||||
*/
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
@Deprecated
|
||||
public static final WhitespacesAndCommentsBinder SPECIAL_PRECEDING_COMMENT_BINDER =
|
||||
WhiteSpaceAndCommentSetHolder.INSTANCE.getSpecialPrecedingCommentBinder(LanguageLevel.HIGHEST);
|
||||
@@ -83,6 +86,7 @@ public final class JavaParserUtil {
|
||||
/**
|
||||
* @deprecated please, use {@link WhiteSpaceAndCommentSetHolder#INSTANCE} instead
|
||||
*/
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
@Deprecated
|
||||
public static final WhitespacesAndCommentsBinder TRAILING_COMMENT_BINDER =
|
||||
WhiteSpaceAndCommentSetHolder.INSTANCE.getTrailingCommentBinder();
|
||||
|
||||
@@ -13,6 +13,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
public class ReferenceParser extends BasicReferenceParser {
|
||||
|
||||
/** @deprecated use {@link BasicReferenceParser#EAT_LAST_DOT} instead **/
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
@Deprecated
|
||||
public static final int EAT_LAST_DOT = 0x01;
|
||||
/** @deprecated use {@link BasicReferenceParser#ELLIPSIS} instead **/
|
||||
@@ -20,6 +21,7 @@ public class ReferenceParser extends BasicReferenceParser {
|
||||
@Deprecated
|
||||
public static final int ELLIPSIS = 0x02;
|
||||
/** @deprecated use {@link BasicReferenceParser#WILDCARD} instead **/
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
@Deprecated
|
||||
public static final int WILDCARD = 0x04;
|
||||
/** @deprecated use {@link BasicReferenceParser#DIAMONDS} instead **/
|
||||
|
||||
@@ -32,6 +32,7 @@ import com.intellij.util.containers.ConcurrentFactoryMap;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import com.intellij.util.messages.MessageBus;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -70,6 +71,7 @@ public final class JavaPsiFacadeImpl extends JavaPsiFacadeEx {
|
||||
/**
|
||||
* @deprecated Use {@link JavaPsiFacade#getInstance(Project)}
|
||||
*/
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
@Deprecated
|
||||
public JavaPsiFacadeImpl(@NotNull Project project) {
|
||||
this(project, null);
|
||||
|
||||
Reference in New Issue
Block a user