mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
removed explicit virtual file inequality
This commit is contained in:
@@ -2579,7 +2579,7 @@ public class FileBasedIndexImpl extends FileBasedIndex {
|
||||
VfsUtilCore.visitChildrenRecursively(root, new VirtualFileVisitor() {
|
||||
@Override
|
||||
public boolean visitFile(@NotNull VirtualFile file) {
|
||||
if (visitedRoots != null && root != file && file.isDirectory() && !visitedRoots.add(file)) {
|
||||
if (visitedRoots != null && !root.equals(file) && file.isDirectory() && !visitedRoots.add(file)) {
|
||||
return false; // avoid visiting files more than once, e.g. additional indexed roots intersect sometimes
|
||||
}
|
||||
if (indicator != null) indicator.checkCanceled();
|
||||
|
||||
Reference in New Issue
Block a user