Adding missing @Override annotations (part 2). Adding RRA/RWA/RUI annotations. Some localization and refactoring#47
Conversation
…otations. Some localization and refactoring.
|
@claude review pr with inline comments |
|
Claude finished @unv-unv's task in 4m 5s —— View job PR Review — @OverRide / RRA·RWA·RUI annotations + refactoring
I reviewed all 57 changed files against Inline comments
Other observations (non-blocking)
Note on verificationI reviewed by reading the diff only — I did not run a Maven build or tests in this environment, so I can't independently confirm that the Overall: looks good to merge. The only thing I'd genuinely act on is the tab/space indentation so the annotation blocks stay consistent with each file's existing style. |
| @Nullable | ||
| @Override | ||
| @RequiredReadAction | ||
| public PyExpression getCallee() |
There was a problem hiding this comment.
Mixed indentation (tabs + spaces). This file is tab-indented, but the newly added @Override / @RequiredReadAction lines use 4 spaces, so the annotation stack no longer lines up with the public signature below it. The same tabs-vs-spaces mix was introduced across many of the touched tab-indented files (e.g. PyAssignmentStatementImpl, PyClassElementType, PyDotNetClassType, PyBinaryExpressionImpl, VariantsProcessor). A reformat pass so annotations match the surrounding indentation would keep the diff clean.
| @Nullable | |
| @Override | |
| @RequiredReadAction | |
| public PyExpression getCallee() | |
| @Nullable | |
| @Override | |
| @RequiredReadAction | |
| public PyExpression getCallee() |
| @Nullable | ||
| @Override | ||
| @RequiredReadAction | ||
| public PyExpression getCallee() |
There was a problem hiding this comment.
Mixed indentation (tabs + spaces). This file is tab-indented, but the newly added @Override / @RequiredReadAction lines use 4 spaces, so the annotation stack no longer lines up with the public signature below it. The same tabs-vs-spaces mix was introduced across many of the touched tab-indented files (e.g. PyAssignmentStatementImpl, PyClassElementType, PyDotNetClassType, PyBinaryExpressionImpl, VariantsProcessor). A reformat pass so annotations match the surrounding indentation would keep the diff clean.
| @Nullable | |
| @Override | |
| @RequiredReadAction | |
| public PyExpression getCallee() | |
| @Nullable | |
| @Override | |
| @RequiredReadAction | |
| public PyExpression getCallee() |
| * @return name of the type | ||
| */ | ||
| @Nullable | ||
| @RequiredReadAction |
There was a problem hiding this comment.
Adding @RequiredReadAction to this interface method tightens the contract for every implementor and caller of PyType.getName() — any call site not already inside a read action will now trip the assertion. That is almost certainly correct here (name resolution touches PSI), just flagging that this is a behavioral/API change rather than a pure annotation cleanup, so it is worth confirming the callers are all under a read lock.
No description provided.