mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
IDEA-78370
This commit is contained in:
@@ -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(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user