mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[core] StubTreeBuilder#getStubBuilderType: optimize negative path
There is no need to call `shouldBuildStubFor` if we have no intent to build a stub GitOrigin-RevId: 279cbbabe27fb290103e6daa2db7893388a9ae8d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
beeadd3241
commit
6c53cea21d
@@ -71,8 +71,10 @@ public final class StubTreeBuilder {
|
||||
if (stubDescriptor == null) return null;
|
||||
|
||||
VirtualFile vFile = file.getFile();
|
||||
boolean shouldBuildStubFor = stubDescriptor.getStubDefinition().shouldBuildStubFor(vFile);
|
||||
if (toBuild && !shouldBuildStubFor) return null;
|
||||
if (toBuild) {
|
||||
boolean shouldBuildStubFor = stubDescriptor.getStubDefinition().shouldBuildStubFor(vFile);
|
||||
if (!shouldBuildStubFor) return null;
|
||||
}
|
||||
|
||||
PushedFilePropertiesRetriever pushedFilePropertiesRetriever = PushedFilePropertiesRetriever.getInstance();
|
||||
@NotNull List<String> properties = pushedFilePropertiesRetriever != null
|
||||
|
||||
Reference in New Issue
Block a user