removed explicit virtual file inequality

This commit is contained in:
Maxim.Mossienko
2014-06-10 12:17:50 +02:00
parent 24be689547
commit 718a6a5f38
@@ -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();