mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-16 08:39:59 +07:00
EA-33373 - IOE: PsiElementFactoryImpl.createField
This commit is contained in:
@@ -374,7 +374,8 @@ public class GenerateDelegateHandler implements LanguageCodeInsightActionHandler
|
||||
for (int i = 0; i < proc.size(); i++) {
|
||||
final PsiVariable psiVariable = proc.getResult(i);
|
||||
final PsiElementFactory elementFactory = JavaPsiFacade.getElementFactory(aClass.getProject());
|
||||
result.add(new PsiFieldMember(elementFactory.createField(psiVariable.getName(), psiVariable.getType())) {
|
||||
final PsiType type = psiVariable.getType();
|
||||
result.add(new PsiFieldMember(elementFactory.createField(psiVariable.getName(), type instanceof PsiEllipsisType ? ((PsiEllipsisType)type).toArrayType() : type)) {
|
||||
@Override
|
||||
protected PsiClass getContainingClass() {
|
||||
return aClass;
|
||||
|
||||
Reference in New Issue
Block a user