Syncing refactoring of JUnitXFramework - #15
Conversation
|
@claude review pr with inline comments |
|
Claude finished @unv-unv's task in 2m 36s —— View job PR Review: Syncing refactoring of JUnitXFramework
I've left 4 inline comments on the diff (with one-click Overall assessment ✅This is a clean API-modernization sync and looks correct. Nice changes:
Notes (all minor / non-blocking)
None of these affect correctness; the PR is good to merge as-is if you'd rather defer the style nits. |
| @Nullable | ||
| @Override | ||
| @RequiredUIAccess | ||
| @RequiredWriteAction | ||
| protected PsiMethod findOrCreateSetUpMethod(PsiClass clazz) throws IncorrectOperationException |
There was a problem hiding this comment.
Indentation & annotation order. These new annotation lines mix tabs and spaces (@Nullable is tab-indented, the others use 4 spaces), and the @Override/@Nullable order is flipped relative to JUnit3Framework#findOrCreateSetUpMethod. Normalizing to tabs and putting @Override first keeps the two frameworks consistent.
| @Nullable | |
| @Override | |
| @RequiredUIAccess | |
| @RequiredWriteAction | |
| protected PsiMethod findOrCreateSetUpMethod(PsiClass clazz) throws IncorrectOperationException | |
| @Override | |
| @Nullable | |
| @RequiredUIAccess | |
| @RequiredWriteAction | |
| protected PsiMethod findOrCreateSetUpMethod(PsiClass clazz) throws IncorrectOperationException |
| @RequiredUIAccess | ||
| @RequiredWriteAction | ||
| private PsiMethod findOrCreateSetUpMethod(PsiClass clazz, String beforeClassAnnotationName, String beforeAnnotationName) |
There was a problem hiding this comment.
Minor: these two annotations are space-indented while the rest of the file uses tabs.
| @RequiredUIAccess | |
| @RequiredWriteAction | |
| private PsiMethod findOrCreateSetUpMethod(PsiClass clazz, String beforeClassAnnotationName, String beforeAnnotationName) | |
| @RequiredUIAccess | |
| @RequiredWriteAction | |
| private PsiMethod findOrCreateSetUpMethod(PsiClass clazz, String beforeClassAnnotationName, String beforeAnnotationName) |
| int exit = Application.get().isUnitTestMode() ? Messages.OK : | ||
| Messages.showOkCancelDialog( | ||
| "Method setUp already exist but is not annotated as @Before. Annotate?", | ||
| CommonLocalize.titleWarning().get(), | ||
| UIUtil.getWarningIcon() | ||
| ); |
There was a problem hiding this comment.
Now that CommonLocalize supplies the dialog title, the message argument is still a hardcoded English string (which also reads "already exist" — should be "already exists"). Consider moving it to a LocalizeValue to match the rest of the localization migration. Non-blocking.
| @Override | ||
| @Nullable | ||
| @RequiredWriteAction |
There was a problem hiding this comment.
Minor: mixed tabs/spaces here — @Override and @RequiredWriteAction use 4 spaces while @Nullable uses a tab. Normalizing to tabs matches the rest of the file.
| @Override | |
| @Nullable | |
| @RequiredWriteAction | |
| @Override | |
| @Nullable | |
| @RequiredWriteAction |
No description provided.