mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-173726 Generation completion suggests create setter for final field
This commit is contained in:
+3
-1
@@ -93,7 +93,9 @@ public class JavaGenerateMemberCompletionContributor {
|
||||
List<PsiMethod> prototypes = ContainerUtil.newSmartList();
|
||||
try {
|
||||
Collections.addAll(prototypes, GetterSetterPrototypeProvider.generateGetterSetters(field, true, false));
|
||||
Collections.addAll(prototypes, GetterSetterPrototypeProvider.generateGetterSetters(field, false, false));
|
||||
if (!field.hasModifierProperty(PsiModifier.FINAL)) {
|
||||
Collections.addAll(prototypes, GetterSetterPrototypeProvider.generateGetterSetters(field, false, false));
|
||||
}
|
||||
}
|
||||
catch (GenerateCodeException ignore) { }
|
||||
for (final PsiMethod prototype : prototypes) {
|
||||
|
||||
Reference in New Issue
Block a user