Adding missing @Override annotations (part 5). Adding RRA/RWA/RUI annotations. Some localization and refactoring - #80
Conversation
|
@claude review pr with inline comments |
|
Claude finished @unv-unv's task in 2m 6s —— View job PR Review — completed
SummaryThis is a large, mostly-mechanical cleanup PR: adding I verified the non-trivial rewrites (the negated Findings🔴 1 bug — The pattern-matching rewrite changed the loop from climbing one ancestor level per iteration to two: // before — parent moves up ONE level
while (parent.getParent() instanceof GrIfStatement) {
parent = parent.getParent();
}
// after — ifStmt already *is* parent.getParent(), so this moves up TWO levels
while (parent.getParent() instanceof GrIfStatement ifStmt) {
parent = ifStmt.getParent();
}For nested Minor nit (not blocking): In Nice work on this batch — once the |
| parent = parent.getParent(); | ||
| private static PsiElement findTopmostIfStatement(PsiElement parent) { | ||
| while (parent.getParent() instanceof GrIfStatement ifStmt) { | ||
| parent = ifStmt.getParent(); |
There was a problem hiding this comment.
Behavioral regression from the pattern-matching rewrite.
The original loop climbed one level per iteration:
while (parent.getParent() instanceof GrIfStatement) {
parent = parent.getParent();
}Here parent = parent.getParent() is exactly the matched GrIfStatement. In the rewrite, the pattern variable ifStmt already is parent.getParent(), so parent = ifStmt.getParent() climbs two levels per iteration — skipping every other if and returning the wrong element for nested else if chains.
| parent = ifStmt.getParent(); | |
| parent = ifStmt; |
…otations. Some localization and refactoring.
|
@claude review pr with inline comments |
|
Claude finished @unv-unv's task in 2m 42s —— View job PR Review — completed
SummaryThis is a large, mostly-mechanical modernization pass: adding I paid particular attention to the non-trivial rewrites and confirmed they are behavior-preserving:
Re: the previously-flagged
|
|
|
||
| public String toString() | ||
| @Override | ||
| public String toString() |
There was a problem hiding this comment.
Nit (cosmetic): this line switched to 4-space indentation, but the rest of the file — including the @Override right above it — is tab-indented. Realign to a tab for consistency.
| public String toString() | |
| public String toString() |
No description provided.