mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PsiFileImpl.mayReloadStub: do cheaper checks first
This commit is contained in:
@@ -763,11 +763,14 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
|
||||
}
|
||||
|
||||
private boolean mayReloadStub() {
|
||||
if (getTreeElement() != null || useStrongRefs()) {
|
||||
return false;
|
||||
}
|
||||
StubTreeLoader loader = StubTreeLoader.getInstance();
|
||||
if (loader != null && loader.isStubReloadingProhibited()) {
|
||||
return false;
|
||||
}
|
||||
return getTreeElement() == null && !useStrongRefs() && !hasUnbindableCachedPsi();
|
||||
return !hasUnbindableCachedPsi();
|
||||
}
|
||||
|
||||
private boolean hasUnbindableCachedPsi() {
|
||||
|
||||
Reference in New Issue
Block a user