leaks in inplace refactorings: make MyExpression class static in order to release references on outer class (cherry picked from commit 4fc0c37)

This commit is contained in:
anna
2012-03-21 18:02:01 +01:00
parent 7e5c716642
commit a631e5322c
5 changed files with 182 additions and 107 deletions
@@ -99,6 +99,7 @@ public abstract class AbstractJavaInplaceIntroducer extends AbstractInplaceIntro
@Override
protected void saveSettings(@NotNull PsiVariable psiVariable) {
TypeSelectorManagerImpl.typeSelected(psiVariable.getType(), getType());//myDefaultType.getType());
myTypeSelectorManager = null;
}
public PsiType getType() {