mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
if (dfaRight instanceof DfaNotNullValue) {
|
if (dfaRight instanceof DfaNotNullValue) {
|
||||||
if (dfaLeft instanceof DfaVariableValue) {
|
if (dfaLeft instanceof DfaVariableValue) {
|
||||||
DfaVariableState varState = getVariableState((DfaVariableValue)dfaLeft);
|
DfaVariableState varState = getVariableState((DfaVariableValue)dfaLeft);
|
||||||
@@ -576,11 +577,12 @@ public class DfaMemoryStateImpl implements DfaMemoryState {
|
|||||||
if (isNegated) {
|
if (isNegated) {
|
||||||
return varState.addNotInstanceofValue(type) || applyCondition(compareToNull(dfaVar, false));
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
if (dfaRight == myFactory.getConstFactory().getNull() && dfaLeft instanceof DfaVariableValue) {
|
if (dfaRight == myFactory.getConstFactory().getNull() && dfaLeft instanceof DfaVariableValue) {
|
||||||
final DfaVariableState varState = getVariableState((DfaVariableValue)dfaLeft);
|
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 testFieldInAnonymous() throws Throwable { doTest(); }
|
||||||
public void testNullableField() throws Throwable { doTest(); }
|
public void testNullableField() throws Throwable { doTest(); }
|
||||||
public void testCanBeNullDoesntImplyIsNull() 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(); }
|
public void testBigMethodNotComplex() throws Throwable { doTest(); }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user