Reverting some message logging changes in JavaToolMonitor#301
Conversation
|
@claude review pr with inline comments |
|
Claude finished @unv-unv's task in 3m 16s —— View job PR Review: Reverting some message logging changes in JavaToolMonitor
I left an inline comment on the change. Summary below. OverallThe refactoring is solid. Collapsing One actionable finding — dead codeWith the three
Minor notes (non-blocking)
Nothing blocking — once the dead |
| } | ||
| } | ||
|
|
||
| private void logMessage(CompilerMessageCategory category, String message, String fileUri, long lineNumber, long columnNumber) { |
There was a problem hiding this comment.
Extracting a shared logMessage(...) helper is a nice cleanup, and the URI→VirtualFile resolution is correctly preserved here (now feeding optionalUrl, which tolerates a null).
One follow-up: this new method inlines exactly what MessageBuilderWrapper.url(...) used to do. With logInfo/logError/logWarning no longer constructing it, the inner MessageBuilderWrapper class (lines 171–205) now has no remaining new MessageBuilderWrapper(...) call sites anywhere in the codebase — it is dead code and can be deleted in this PR.
(Those lines are outside this diff hunk, so a one-click suggestion cannot be attached; please remove the class manually.)
003efb5 to
12f30ce
Compare
|
@claude review pr with inline comments |
|
Claude finished @unv-unv's task in 1m 53s —— View job PR Review: Reverting some message logging changes in JavaToolMonitor
I left an inline comment on the change. OverallThe refactoring is clean. Collapsing On the prior review's "dead code" noteThe earlier review flagged One actionable finding — unused import
Minor note (non-blocking)
Nothing blocking — once the unused |
| import consulo.application.util.concurrent.AppExecutorUtil; | ||
| import consulo.compiler.CacheCorruptedException; | ||
| import consulo.compiler.CompileContext; | ||
| import consulo.compiler.CompilerMessageCategory; |
There was a problem hiding this comment.
Nice cleanup — collapsing logInfo/logError/logWarning into a single logMessage(category, …) and routing through newMessage(category, …).optionalUrl(fileUrl) preserves the original URI→VirtualFile resolution while removing the triplicated builder code. The MessageBuilderWrapper class is fully removed in this diff, so the dead-code concern is already handled. 👍
One small leftover: now that MessageBuilderWrapper.navigatable(Navigatable) is gone, the import consulo.navigation.Navigatable; (line 12) is unused and can be removed — it has no other reference in this file. (That line is outside the diff hunks, so a one-click suggestion block cannot be attached here.)
No description provided.