From 5884c85c2c3c52bb17c30039b7458b0b706568bd Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Wed, 10 Oct 2018 13:35:05 +0700 Subject: [PATCH] DfaExpressionFactory: cleanup --- .../codeInspection/dataFlow/value/DfaExpressionFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/java-analysis-impl/src/com/intellij/codeInspection/dataFlow/value/DfaExpressionFactory.java b/java/java-analysis-impl/src/com/intellij/codeInspection/dataFlow/value/DfaExpressionFactory.java index 8a0423adf83b..c823f05ab1b4 100644 --- a/java/java-analysis-impl/src/com/intellij/codeInspection/dataFlow/value/DfaExpressionFactory.java +++ b/java/java-analysis-impl/src/com/intellij/codeInspection/dataFlow/value/DfaExpressionFactory.java @@ -169,11 +169,11 @@ public class DfaExpressionFactory { return myFactory.getVarFactory().createVariableValue(var, refExpr.getType()); } DfaVariableValue qualifier = getQualifierOrThisVariable(refExpr); + PsiType type = refExpr.getType(); if (qualifier != null) { - return myFactory.getVarFactory().createVariableValue(var, refExpr.getType(), qualifier); + return myFactory.getVarFactory().createVariableValue(var, type, qualifier); } - PsiType type = refExpr.getType(); return myFactory.createTypeValue(type, DfaPsiUtil.getElementNullability(type, psiElement)); }