mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
[java-refactoring] ConvertToRecordProcessor: rename method
GitOrigin-RevId: 81fe4dc214efded9db3287182d523779723d1689
This commit is contained in:
committed by
intellij-monorepo-bot
parent
39b1795487
commit
25e106f882
@@ -329,13 +329,13 @@ final class ConvertToRecordProcessor extends BaseRefactoringProcessor {
|
||||
PsiClass result = (PsiClass)psiClass.replace(recordBuilder.build());
|
||||
tryToCompactCanonicalCtor(result);
|
||||
removeRedundantObjectMethods(result, redundantObjectMethods);
|
||||
addImplicitLombokGetters(result, syntheticGetters.toArray(PsiMethod.EMPTY_ARRAY));
|
||||
addImplicitSyntheticGetters(result, syntheticGetters.toArray(PsiMethod.EMPTY_ARRAY));
|
||||
removeRedundantLombokAnnotations(result);
|
||||
generateJavaDocForDocumentedFields(result, myRecordCandidate.getFieldsToAccessorCandidates().keySet());
|
||||
CodeStyleManager.getInstance(myProject).reformat(JavaCodeStyleManager.getInstance(myProject).shortenClassReferences(result));
|
||||
}
|
||||
|
||||
private void addImplicitLombokGetters(@NotNull PsiClass record, @NotNull PsiMethod @NotNull [] implicitGetters) {
|
||||
private void addImplicitSyntheticGetters(@NotNull PsiClass record, @NotNull PsiMethod @NotNull [] implicitGetters) {
|
||||
if (!mySuggestAccessorsRenaming) {
|
||||
PsiElementFactory elementFactory = JavaPsiFacade.getElementFactory(myProject);
|
||||
for (PsiMethod getter : implicitGetters) {
|
||||
|
||||
Reference in New Issue
Block a user