mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-07-31 21:35:14 +07:00
[rollback] NotNullValues mustn't end up in equivalence classes table. (Check SliceTreeTest next time)
This commit is contained in:
@@ -568,6 +568,7 @@ public class DfaMemoryStateImpl implements DfaMemoryState {
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
if (dfaRight instanceof DfaNotNullValue) {
|
||||
if (dfaLeft instanceof DfaVariableValue) {
|
||||
DfaVariableState varState = getVariableState((DfaVariableValue)dfaLeft);
|
||||
@@ -576,11 +577,12 @@ public class DfaMemoryStateImpl implements DfaMemoryState {
|
||||
if (isNegated) {
|
||||
return varState.addNotInstanceofValue(type) || applyCondition(compareToNull(dfaVar, false));
|
||||
}
|
||||
return applyCondition(compareToNull(dfaVar, false)) && varState.setInstanceofValue(type);
|
||||
return applyCondition(compareToNull(dfaVar, true)) && varState.setInstanceofValue(type);
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
*/
|
||||
|
||||
if (dfaRight == myFactory.getConstFactory().getNull() && dfaLeft instanceof DfaVariableValue) {
|
||||
final DfaVariableState varState = getVariableState((DfaVariableValue)dfaLeft);
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ public class DataFlowInspectionFixtureTest extends JavaCodeInsightFixtureTestCas
|
||||
public void testFieldInAnonymous() throws Throwable { doTest(); }
|
||||
public void testNullableField() throws Throwable { doTest(); }
|
||||
public void testCanBeNullDoesntImplyIsNull() throws Throwable { doTest(); }
|
||||
public void testAnnReport() throws Throwable { doTest(); }
|
||||
/*public void testAnnReport() throws Throwable { doTest(); }*/
|
||||
|
||||
public void testBigMethodNotComplex() throws Throwable { doTest(); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user