IJPL-204332 Remove RA which is no longer necessary (access to storage in the ProjectIndexingDependenciesService is guarded by synchronized)

GitOrigin-RevId: 5b99d170268a1643bb0d09a9be35fe1784a0ea55
This commit is contained in:
Liudmila Kornilova
2025-08-28 19:37:49 +00:00
committed by intellij-monorepo-bot
parent 4b61fd0196
commit bd41da7e0b
@@ -2,7 +2,6 @@
package com.intellij.util.indexing
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.application.ReadAction
import com.intellij.openapi.application.readAction
import com.intellij.openapi.diagnostic.ControlFlowException
import com.intellij.openapi.diagnostic.Logger
@@ -249,11 +248,8 @@ class UnindexedFilesScanner (
.collectIndexableFilesConcurrently(orderedProviders)
}
finally {
ReadAction.run<Throwable> {
// read action ensures that service won't be disposed and storage inside won't be closed
myProject.getServiceIfCreated(ProjectIndexingDependenciesService::class.java)
?.completeToken(scanningRequest, scanningIterators.isFullIndexUpdate())
}
myProject.getServiceIfCreated(ProjectIndexingDependenciesService::class.java)
?.completeToken(scanningRequest, scanningIterators.isFullIndexUpdate())
}
}