mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
java global inspections: replace usages of uast as psi
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
// 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.codeInspection.reference;
|
||||
|
||||
import com.intellij.lang.jvm.JvmClass;
|
||||
import com.intellij.psi.PsiClass;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.util.ObjectUtils;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.uast.UClass;
|
||||
import org.jetbrains.uast.UElement;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
@@ -54,14 +50,14 @@ public interface RefClass extends RefJavaElement {
|
||||
|
||||
boolean isLocalClass();
|
||||
|
||||
@SuppressWarnings("DeprecatedIsStillUsed")
|
||||
@SuppressWarnings({"DeprecatedIsStillUsed", "unused"})
|
||||
@Deprecated
|
||||
default boolean isSelfInheritor(PsiClass psiClass) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
default boolean isSelfInheritor(UClass uClass) {
|
||||
return isSelfInheritor((PsiClass) uClass);
|
||||
default boolean isSelfInheritor(@NotNull UClass uClass) {
|
||||
return isSelfInheritor(uClass.getJavaPsi());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user