mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
javac ast indices: small optimization
This commit is contained in:
+1
-1
@@ -140,10 +140,10 @@ public class BackwardReferenceIndexWriter {
|
||||
}
|
||||
}
|
||||
else {
|
||||
String ownerName = ref.getOwnerName();
|
||||
if (isPrivate(ref)) {
|
||||
return null;
|
||||
}
|
||||
String ownerName = ref.getOwnerName();
|
||||
final Integer ownerPrecalculatedId = ownerIdReplacer.fun(ownerName);
|
||||
if (ref instanceof JavacRef.JavacField) {
|
||||
return new LightRef.JavaLightFieldRef(ownerPrecalculatedId != null ? ownerPrecalculatedId : id(ownerName, nameEnumerator), id(ref, nameEnumerator));
|
||||
|
||||
Reference in New Issue
Block a user