IDEA-78370

This commit is contained in:
Maxim Shafirov
2011-12-09 19:59:46 +04:00
parent 11d383c996
commit 56723c4b17
4 changed files with 14 additions and 0 deletions
@@ -257,6 +257,8 @@ public class DfaMemoryStateImpl implements DfaMemoryState {
}
public void setVarValue(DfaVariableValue var, DfaValue value) {
if (var == value) return;
flushVariable(var);
if (value instanceof DfaUnknownValue) return;
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems/>
@@ -0,0 +1,8 @@
import org.jetbrains.annotations.Nullable;
public class NoWarnings {
int f(@Nullable String value) {
value = value == null ? "" : value;
return value.hashCode();
}
}
@@ -81,6 +81,7 @@ public class DataFlowInspectionTest extends InspectionTestCase {
public void testIDEADEV74518() throws Exception { doTest(); }
public void testIDEADEV74518_2() throws Exception { doTest(); }
public void testIDEADEV77819() throws Exception { doTest(); }
public void testIDEADEV78370() throws Exception { doTest(); }
public void testRegressionByPti() throws Exception { doTest(); }