From 1a715c3daf058ce1033b376cfa3b6ebc5433f192 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 27 Oct 2011 19:11:32 +0200 Subject: [PATCH] remove strange matching check that would exclude valid array proposals after new --- .../codeInsight/completion/JavaInheritorsGetter.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/java/java-impl/src/com/intellij/codeInsight/completion/JavaInheritorsGetter.java b/java/java-impl/src/com/intellij/codeInsight/completion/JavaInheritorsGetter.java index 88457e842c85..bafe000392d2 100644 --- a/java/java-impl/src/com/intellij/codeInsight/completion/JavaInheritorsGetter.java +++ b/java/java-impl/src/com/intellij/codeInsight/completion/JavaInheritorsGetter.java @@ -67,7 +67,7 @@ public class JavaInheritorsGetter extends CompletionProvider consumer) { - addArrayTypes(parameters.getPosition(), infos, prefixMatcher, consumer); + addArrayTypes(parameters.getPosition(), infos, consumer); processInheritors(parameters, extractClassTypes(infos), prefixMatcher, new Consumer() { public void consume(final PsiType type) { @@ -80,11 +80,10 @@ public class JavaInheritorsGetter extends CompletionProvider consumer) { + ExpectedTypeInfo[] infos, final Consumer consumer) { for (final PsiType type : ExpectedTypesGetter.extractTypes(infos, true)) { - if (type instanceof PsiArrayType && matcher.prefixMatches(type.getCanonicalText())) { - + if (type instanceof PsiArrayType) { final LookupItem item = PsiTypeLookupItem.createLookupItem(JavaCompletionUtil.eliminateWildcards(type), identifierCopy); if (item.getObject() instanceof PsiClass) { JavaCompletionUtil.setShowFQN(item);