Adding missing @Override annotations (part 4). Adding RRA/RWA/RUI annotations. Some localization and refactoring - #14
Conversation
…otations. Some localization and refactoring.
|
@claude review pr with inline comments |
|
Claude finished @unv-unv's task in 4m 40s —— View job PR Review — Adding @OverRide / RRA-RWA-RUI annotations, localization & refactoring
OverallThis is a clean, well-scoped mechanical modernization PR. The bulk of it is safe and welcome:
Inline comments
Non-blocking observations (no inline suggestion — whole-file / informational)
Nothing here is a blocker (pending the |
| @RequiredReadAction | ||
| private AopModel getAopModel() { | ||
| return AopModuleService.getAopModel(myHost != null ? ModuleUtilCore.findModuleForPsiElement(myHost) : null); | ||
| return AopModuleService.getAopModel(myHost != null ? myHost.getModule() : null); |
There was a problem hiding this comment.
Indentation is off here — this line uses 6 spaces while the rest of the method body should be 4 (the file uses 2-space indentation). The myHost.getModule() switch itself is fine and matches the same ModuleUtilCore.findModuleForPsiElement(...) → getModule() migration done in MissingAspectjAutoproxyInspection in this PR.
| return AopModuleService.getAopModel(myHost != null ? myHost.getModule() : null); | |
| return AopModuleService.getAopModel(myHost != null ? myHost.getModule() : null); |
| return true; | ||
| } | ||
| builder.error(AopBundle.message("error.0.expected", text)); | ||
| builder.error(AopLocalize.error0Expected(text)); |
There was a problem hiding this comment.
These three builder.error(...) calls (lines 43, 57, 71) now pass a LocalizeValue directly, whereas the sibling PrattBuilder calls (e.g. MethodPointcutDescriptor, AopPrattParser) call .get(), and line 172 of this same file still passes a plain String to builder.error(message).
Please confirm PsiBuilder#error has a LocalizeValue overload — if it only accepts String, this won't compile and you'd need AopLocalize.error0Expected(text).get(). If the overload exists, passing the LocalizeValue is the better form and no change is needed.
No description provided.