mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
[vfs][cleanup] +comments, inspections warning cleaning
GitOrigin-RevId: 5dc51ce75344ea249a4d618310a000b0557dcbc0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
831dfcf8e6
commit
8a53dae8df
@@ -554,7 +554,7 @@ public class VirtualDirectoryImpl extends VirtualFileSystemEntry {
|
||||
|
||||
//So the branch below is almost surely 'child just not loaded yet'
|
||||
|
||||
PersistentFS persistence = owningPersistentFS();
|
||||
PersistentFSImpl persistence = owningPersistentFS();
|
||||
String name = persistence.getName(id);
|
||||
VirtualFileSystemEntry fileByName = findChild(name, false, false, getFileSystem());
|
||||
if (fileByName != null && fileByName.getId() != id) {
|
||||
@@ -563,7 +563,7 @@ public class VirtualDirectoryImpl extends VirtualFileSystemEntry {
|
||||
boolean deleted = FSRecords.isDeleted(id);
|
||||
if (!deleted) {
|
||||
THROTTLED_LOG.info(() -> {
|
||||
@SuppressWarnings("removal") int parentId = FSRecords.getParent(id);
|
||||
int parentId = persistence.peer().getParent(id);
|
||||
IntOpenHashSet childrenInPersistence = new IntOpenHashSet(FSRecords.listIds(id));
|
||||
IntOpenHashSet childrenInMemory = new IntOpenHashSet(myData.myChildrenIds);
|
||||
int[] childrenNotInPersistent = childrenInMemory.intStream()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.openapi.vfs.newvfs.persistent;
|
||||
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
@@ -52,7 +52,11 @@ public final class VFSInitException extends IOException {
|
||||
NAME_STORAGE_INCOMPLETE,
|
||||
/** Attributes storage has corrupted record(s) */
|
||||
ATTRIBUTES_STORAGE_CORRUPTED,
|
||||
/** Content and ContentHashes storages are not match with each other */
|
||||
/**
|
||||
* Content and ContentHashes storages are not match with each other
|
||||
* FIXME RC: this becomes obsolete as in {@link com.intellij.openapi.vfs.newvfs.persistent.dev.content.VFSContentStorageOverMMappedFile}
|
||||
* there is no separate content and contentHashes storages, but a single storage-with-hash-based-deduplication instead
|
||||
*/
|
||||
CONTENT_STORAGES_NOT_MATCH,
|
||||
/** Content or ContentHashes storages are not able to resolve existing reference */
|
||||
CONTENT_STORAGES_INCOMPLETE,
|
||||
|
||||
Reference in New Issue
Block a user