mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[indexes] IJPL-225237: fix unsafe casting TransientVirtualFile to WithId
GitOrigin-RevId: 32509b84ffa7c17547226fd8d0a6be9da40aa1e7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1fa3abd410
commit
cdcf64cef1
@@ -63,10 +63,12 @@ public abstract class IdFilter {
|
||||
|
||||
private static @NotNull IdFilter buildProjectIdFilterForContentFiles(@NotNull Project project) {
|
||||
long started = System.currentTimeMillis();
|
||||
final BitSet idSet = new BitSet();
|
||||
BitSet idSet = new BitSet();
|
||||
|
||||
ContentIterator iterator = fileOrDir -> {
|
||||
idSet.set(((VirtualFileWithId)fileOrDir).getId());
|
||||
if (fileOrDir instanceof VirtualFileWithId fileWithId) {
|
||||
idSet.set(fileWithId.getId());
|
||||
}//else: if file doesn't have id -- we don't bother adding it to IdFilter?
|
||||
ProgressManager.checkCanceled();
|
||||
return true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user