cache the default dfaVar type

This commit is contained in:
peter
2013-09-10 18:28:46 +02:00
parent 2ee4c955da
commit 8534bf1625
3 changed files with 11 additions and 4 deletions
@@ -783,10 +783,6 @@ public class DfaMemoryStateImpl implements DfaMemoryState {
if (state == null) {
state = createVariableState(dfaVar);
PsiType type = dfaVar.getVariableType();
if (type != null) {
state.setInstanceofValue(myFactory.getTypeFactory().createTypeValue(type));
}
if (isUnknownState(dfaVar)) {
state.setNullable(false);
return state;