java global inspections: replace usages of uast as psi

This commit is contained in:
Dmitry Batkovich
2018-11-21 16:50:47 +03:00
parent c864e9f95f
commit 41e56ebf20
4 changed files with 25 additions and 30 deletions

View File

@@ -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