mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
unnecessary lock removed
This commit is contained in:
@@ -387,13 +387,7 @@ public class StubIndexImpl extends StubIndex implements ApplicationComponent, Pe
|
||||
|
||||
public void flush(StubIndexKey key) throws StorageException {
|
||||
final MyIndex<?> index = myIndices.get(key);
|
||||
index.getReadLock().lock();
|
||||
try {
|
||||
index.flush();
|
||||
}
|
||||
finally {
|
||||
index.getReadLock().unlock();
|
||||
}
|
||||
index.flush();
|
||||
}
|
||||
|
||||
public <K> void updateIndex(StubIndexKey key, int fileId, final Map<K, TIntArrayList> oldValues, Map<K, TIntArrayList> newValues) {
|
||||
|
||||
Reference in New Issue
Block a user