Commit 335ec993 authored by Dmitry Batkovich's avatar Dmitry Batkovich Committed by intellij-monorepo-bot
Browse files

drop toString() EA-499981

(cherry picked from commit 1be7a4fab171e5172b9725a828ddd42b07c62fec)

IJ-CR-23755

GitOrigin-RevId: c8b756e7d87da24c5dd3b9f7ae66c28085b550bd
parent 57a4b4ae
Showing with 0 additions and 24 deletions
+0 -24
......@@ -6,7 +6,6 @@ import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.progress.ProgressIndicator;
import com.intellij.openapi.project.DumbModeTask;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vfs.VirtualFile;
......@@ -145,28 +144,5 @@ public final class FileBasedIndexProjectHandler {
}
return null;
}
@Override
public String toString() {
StringBuilder sampleOfChangedFilePathsToBeIndexed = new StringBuilder();
((FileBasedIndexImpl)FileBasedIndex.getInstance()).processChangedFiles(myProject, new Processor<>() {
int filesInProjectToBeIndexed;
final String projectBasePath = myProject.getBasePath();
@Override
public boolean process(VirtualFile file) {
if (filesInProjectToBeIndexed != 0) sampleOfChangedFilePathsToBeIndexed.append(", ");
String filePath = file.getPath();
String loggedPath = projectBasePath != null ? FileUtil.getRelativePath(projectBasePath, filePath, '/') : null;
loggedPath = loggedPath == null ? filePath : "%project_path%/" + loggedPath;
sampleOfChangedFilePathsToBeIndexed.append(loggedPath);
return ++filesInProjectToBeIndexed < ourMinFilesToStartDumbMode;
}
});
return super.toString() + " [" + myProject + ", " + sampleOfChangedFilePathsToBeIndexed + "]";
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment