mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
re-implement java global inspection graph using uast (fix local classes detection)
This commit is contained in:
@@ -73,7 +73,7 @@ public class RefClassImpl extends RefJavaElementImpl implements RefClass {
|
||||
if (parent instanceof UMethod || parent instanceof UClass || parent instanceof UField) {
|
||||
break;
|
||||
}
|
||||
parent = UDeclarationKt.getContainingDeclaration(uClass);
|
||||
parent = UDeclarationKt.getContainingDeclaration(parent);
|
||||
}
|
||||
if (parent != null) {
|
||||
RefElement refParent = getRefManager().getReference(parent.getSourcePsi());
|
||||
@@ -108,7 +108,7 @@ public class RefClassImpl extends RefJavaElementImpl implements RefClass {
|
||||
setAbstract(javaPsi.hasModifier(JvmModifier.ABSTRACT));
|
||||
setAnonymous(uClass.getName() == null);
|
||||
|
||||
setIsLocal(!(isAnonymous() || parent instanceof UClass || parent instanceof UFile));
|
||||
setIsLocal(!isAnonymous() && parent != null && !(parent instanceof UClass));
|
||||
|
||||
setInterface(uClass.isInterface());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user