Adding missing @Override annotations. Some refactoring#56
Conversation
|
@claude review pr with inline comments |
|
Claude finished @unv-unv's task in 7m 52s —— View job PR Review — @OverRide annotations & refactoring
Overall: LGTM 👍 This is a clean, well-scoped mechanical cleanup and I found no correctness issues. Build CI is green ✅, so nothing here breaks compilation. The changes fall into consistent, low-risk buckets:
I posted 3 inline comments on the specific lines. All are minor / optional — none block merge:
Copy-paste suggestions for the two code nits
public StructureViewBuilder getStructureViewBuilder(PsiFile psiFile) {
Map<Object, Object> map = new HashMap<>(dtd.elements);Notes (non-blocking)
Nice cleanup overall. |
| @Nullable | ||
| @Override | ||
| @RequiredReadAction | ||
| public StructureViewBuilder getStructureViewBuilder(final PsiFile psiFile) { |
There was a problem hiding this comment.
Consistency nit: this PR removes the redundant final modifier from locals/params elsewhere (e.g. BnfStringImpl.updateText, the ChooseModulesDialog constructors), but this parameter keeps it. Consider dropping final here too for consistency: getStructureViewBuilder(PsiFile psiFile).
| StringBuffer sb = new StringBuffer("Empty root: possible elements: "); | ||
| HashMap map = new HashMap(dtd.elements); | ||
| StringBuilder sb = new StringBuilder("Empty root: possible elements: "); | ||
| Map map = new HashMap(dtd.elements); |
There was a problem hiding this comment.
Optional cleanup: now that this line is touched, the raw Map / HashMap could be parameterized to drop the unchecked warning, e.g. Map<Object, Object> map = new HashMap<>(dtd.elements);
|
|
||
| myCandidateModules = candidateModules; | ||
| myIcon = Messages.getQuestionIcon(); | ||
| myIcon = UIUtil.getQuestionIcon(); |
There was a problem hiding this comment.
Beyond the @OverRide additions, this line also swaps runtime behavior: Messages.getQuestionIcon() -> UIUtil.getQuestionIcon() (and AllIcons.Nodes.Module -> PlatformIconGroup.nodesModule() below). These are reasonable API modernizations, just flagging that they are functional changes bundled into an "annotations/refactor" PR — worth a quick visual confirm that the dialog icon is unchanged.
No description provided.