mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
suggest to replace with constant reference rather than its value
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user