[java] Fix various simple warnings

GitOrigin-RevId: f7e0602dd3ae7cff59ca30cf8bfa351738ae1a70
This commit is contained in:
Bart van Helvert
2025-08-24 17:14:21 +00:00
committed by intellij-monorepo-bot
parent bf7efead15
commit ed90fdab9f
@@ -84,7 +84,7 @@ private class ProjectProblemFileFileEditorManagerListener : FileEditorManagerLis
setPreviousState(newJavaFile)
val isInSplitEditorMode = event.manager.selectedEditors.size > 1
if (isInSplitEditorMode) {
InlayHintsPassFactoryInternal.Companion.restartDaemonUpdatingHints(project, "ProjectProblemFileFileEditorManagerListener.selectionChanged")
InlayHintsPassFactoryInternal.restartDaemonUpdatingHints(project, "ProjectProblemFileFileEditorManagerListener.selectionChanged")
}
}
}
@@ -125,7 +125,7 @@ internal class ProjectProblemFileRefactoringEventListener(private val project: P
@OptIn(FlowPreview::class)
@Service(Service.Level.PROJECT)
private class ProjectPsiChangesProcessor(private val scope: CoroutineScope) {
private class ProjectPsiChangesProcessor(scope: CoroutineScope) {
private val psiChanges = ConcurrentCollectionFactory.createConcurrentSet<PsiFile>()
private val psiChangesProcessor = MutableSharedFlow<Unit?>(replay = 1, onBufferOverflow = BufferOverflow.DROP_OLDEST)