Adding missing @Override annotations (part 4). Adding RRA/RWA/RUI annotations. Some localization and refactoring - #79
Conversation
|
@claude review pr with inline comments |
|
Claude finished @unv-unv's task in 3m 39s —— View job PR Review — @OverRide annotations, RRA/RWA/RUI, localization & refactoringI reviewed all 62 changed files against
OverallThis is a large but overwhelmingly mechanical and safe change: adding missing Findings1. Minor / non-blocking observations (no change required)
Nice cleanups overall — the |
| CommonRefactoringUtil.showErrorHint( | ||
| project, | ||
| editor, | ||
| RefactoringLocalize.cannotPerformRefactoringWithReason(getRefactoringName() + "is not available in current scope"), |
There was a problem hiding this comment.
getRefactoringName() now returns a LocalizeValue (it was a String before this PR), so this expression relies on LocalizeValue.toString() via string concatenation. That is not the resolved display text — the user would see the raw LocalizeValue representation instead of the refactoring name. There is also a missing space before is.
| RefactoringLocalize.cannotPerformRefactoringWithReason(getRefactoringName() + "is not available in current scope"), | |
| RefactoringLocalize.cannotPerformRefactoringWithReason(getRefactoringName().get() + " is not available in current scope"), |
The repo already has a dedicated refactoring.is.not.supported.in.the.current.context.0 message with a {0} placeholder — a parameterized LocalizeValue would be cleaner than concatenation here.
…otations. Some localization and refactoring.
|
@claude review pr with inline comments |
|
Claude finished @unv-unv's task in 2m 49s —— View job PR Review — @OverRide, RRA/RWA/RUI, localization & refactoring
OverallLarge but overwhelmingly mechanical and safe: missing I re-verified the non-trivial control-flow rewrites and they preserve semantics:
Findings1. Minor / non-blocking (no change required)
Nice cleanups overall — the lambda/diamond conversions and |
| CommonRefactoringUtil.showErrorHint( | ||
| project, | ||
| editor, | ||
| RefactoringLocalize.cannotPerformRefactoringWithReason(LocalizeValue.localizeTODO(getRefactoringName() + "is not available in current scope")), |
There was a problem hiding this comment.
getRefactoringName() now returns a LocalizeValue (it was a String before this PR), so getRefactoringName() + "is not available in current scope" invokes LocalizeValue.toString() on it — that is not the resolved display text, so the error hint would show the raw LocalizeValue representation instead of the refactoring name. There is also a missing space before is.
Since cannotPerformRefactoringWithReason(...) already accepts a plain String (see line 546, which passes StringUtil.notNullize(e.getMessage())), resolve the name with .get() and drop the redundant localizeTODO(...) wrapper:
| RefactoringLocalize.cannotPerformRefactoringWithReason(LocalizeValue.localizeTODO(getRefactoringName() + "is not available in current scope")), | |
| RefactoringLocalize.cannotPerformRefactoringWithReason(getRefactoringName().get() + " is not available in current scope"), |
The repo also has a dedicated parameterized message (refactoring.is.not.supported.in.the.current.context.0 with a {0} placeholder) — using it would be cleaner than string concatenation, but the fix above is the minimal correctness change.
No description provided.