mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix compilation
GitOrigin-RevId: f1a789b146a030746643238c481a54e93c3833bb
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b369994381
commit
f6f5830850
@@ -52,7 +52,6 @@ import java.util.concurrent.atomic.AtomicReference;
|
||||
import java.util.concurrent.locks.Lock;
|
||||
import java.util.concurrent.locks.ReadWriteLock;
|
||||
import java.util.function.IntPredicate;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@State(name = "FileBasedIndex", storages = {
|
||||
@Storage(value = StoragePathMacros.CACHE_FILE),
|
||||
@@ -197,13 +196,14 @@ public final class StubIndexImpl extends StubIndexEx implements PersistentStateC
|
||||
UpdatableIndex<K, Void, FileContent> index = new VfsAwareMapReduceIndex<>(wrappedExtension, memStorage, null, null, null, lock);
|
||||
|
||||
if (stubUpdatingIndex instanceof MergedInvertedIndex) {
|
||||
List<ProvidedIndexExtension<K, Void>> providedIndexExtensions = ((MergedInvertedIndex<Integer, SerializedStubTree>)stubUpdatingIndex)
|
||||
.getProvidedExtensions()
|
||||
.filter(ex -> ex instanceof StubProvidedIndexExtension)
|
||||
.map(ex -> ((StubProvidedIndexExtension)ex).findProvidedStubIndex(extension))
|
||||
.collect(Collectors.toList());
|
||||
if (!providedIndexExtensions.isEmpty()) {
|
||||
index = ProvidedIndexExtension.wrapWithProvidedIndex(providedIndexExtensions, wrappedExtension, index, ((MergedInvertedIndex<Integer, SerializedStubTree>)stubUpdatingIndex).getHashIndex());
|
||||
ProvidedIndexExtension<Integer, SerializedStubTree> ex =
|
||||
((MergedInvertedIndex<Integer, SerializedStubTree>)stubUpdatingIndex).getProvidedExtension();
|
||||
if (ex instanceof StubProvidedIndexExtension) {
|
||||
ProvidedIndexExtension<K, Void> providedStubIndexExtension =
|
||||
((StubProvidedIndexExtension)ex).findProvidedStubIndex(extension);
|
||||
if (providedStubIndexExtension != null) {
|
||||
index = ProvidedIndexExtension.wrapWithProvidedIndex(providedStubIndexExtension, wrappedExtension, index);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user