suggest to replace with constant reference rather than its value

This commit is contained in:
peter
2013-07-15 16:42:36 +02:00
parent 7c1918b7a0
commit 4774b1e0e2
8 changed files with 49 additions and 38 deletions
@@ -711,7 +711,7 @@ public class DfaMemoryStateImpl implements DfaMemoryState {
if (dfaRight instanceof DfaConstValue) {
Object constVal = ((DfaConstValue)dfaRight).getValue();
if (constVal instanceof Boolean) {
DfaConstValue negVal = myFactory.getConstFactory().createFromValue(!((Boolean)constVal).booleanValue(), PsiType.BOOLEAN);
DfaConstValue negVal = myFactory.getConstFactory().createFromValue(!((Boolean)constVal).booleanValue(), PsiType.BOOLEAN, null);
if (!applyRelation(dfaLeft, negVal, !negated)) {
return false;
}