From 14e0ad5d1e1630603a0255e12633f6c978792733 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 9 Feb 2012 15:33:58 +0100 Subject: [PATCH] fix PIEAE --- .../codeInsight/completion/ConstructorInsertHandler.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/java/java-impl/src/com/intellij/codeInsight/completion/ConstructorInsertHandler.java b/java/java-impl/src/com/intellij/codeInsight/completion/ConstructorInsertHandler.java index 672536501f6a..5d5dcc42ee5a 100644 --- a/java/java-impl/src/com/intellij/codeInsight/completion/ConstructorInsertHandler.java +++ b/java/java-impl/src/com/intellij/codeInsight/completion/ConstructorInsertHandler.java @@ -49,10 +49,6 @@ class ConstructorInsertHandler implements InsertHandler item) { @SuppressWarnings({"unchecked"}) final LookupItem delegate = item.getDelegate(); - final PsiElement position = SmartCompletionDecorator.getPosition(context, delegate); - final PsiExpression enclosing = PsiTreeUtil.getContextOfType(position, PsiExpression.class, true); - final PsiAnonymousClass anonymousClass = PsiTreeUtil.getParentOfType(position, PsiAnonymousClass.class); - final boolean inAnonymous = anonymousClass != null && anonymousClass.getParent() == enclosing; PsiClass psiClass = (PsiClass)item.getObject(); boolean isAbstract = psiClass.hasModifierProperty(PsiModifier.ABSTRACT); @@ -68,6 +64,10 @@ class ConstructorInsertHandler implements InsertHandler