mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 20:41:22 +07:00
[java-completion] IDEA-385709 ArrayIndexOutOfBoundsException when deconstruction components are more than record components
- clean-uo GitOrigin-RevId: 6f2ee59e3a41b1d9538814078fd319241b9028b5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
535279c971
commit
8601ac6b7e
@@ -187,7 +187,6 @@ public final class JavaPatternCompletionUtil {
|
||||
@NotNull List<PsiType> types,
|
||||
boolean onlyDeconstructionList) {
|
||||
static PatternModel create(@NotNull PsiClass record, @NotNull PsiElement context, boolean onlyDeconstructionList) {
|
||||
JavaCodeStyleManager manager = JavaCodeStyleManager.getInstance(record.getProject());
|
||||
PsiDeconstructionPattern deconstructionPattern = PsiTreeUtil.getParentOfType(context, PsiDeconstructionPattern.class);
|
||||
List<String> names = new ArrayList<>();
|
||||
for (PsiRecordComponent component : record.getRecordComponents()) {
|
||||
|
||||
Reference in New Issue
Block a user