mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 19:28:23 +07:00
inspection-integration - exclude an edge between annotation access expression and annotation method
GitOrigin-RevId: bb7258de864e2b32529e679785d74ef145a43e33
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ba3470c6f2
commit
937831e0de
@@ -60,26 +60,6 @@ public class RefJavaUtilImpl extends RefJavaUtil {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean visitElement(@NotNull UElement node) {
|
||||
UNamedExpression namedExpr = ObjectUtils.tryCast(node, UNamedExpression.class);
|
||||
if (namedExpr == null) return false;
|
||||
UAnnotation ann = ObjectUtils.tryCast(namedExpr.getUastParent(), UAnnotation.class);
|
||||
if (ann == null) return false;
|
||||
String annFqn = ann.getQualifiedName();
|
||||
if (annFqn == null) return false;
|
||||
PsiMethod annMethod = UastUtils.getAnnotationMethod(namedExpr);
|
||||
if (annMethod == null) return false;
|
||||
RefMethod annRefMethod = ObjectUtils.tryCast(refFrom.getRefManager().getReference(annMethod), RefMethod.class);
|
||||
if (annRefMethod == null) return false;
|
||||
RefJavaElementImpl annRefClass = ObjectUtils.tryCast(
|
||||
annRefMethod.getRefManager().getReference(annMethod.getContainingClass()), RefJavaElementImpl.class);
|
||||
if (annRefClass != null) {
|
||||
annRefClass.addReference(annRefMethod, annMethod.getOriginalElement(), decl, false, true, null);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean visitTypeReferenceExpression(@NotNull UTypeReferenceExpression node) {
|
||||
PsiType type = node.getType();
|
||||
|
||||
Reference in New Issue
Block a user