DfaMemoryState is unfortunately mutable; use defensive copying

This commit is contained in:
peter
2013-09-14 23:53:54 +04:00
parent a808b08c5b
commit 0200babeca
3 changed files with 21 additions and 4 deletions
@@ -0,0 +1,16 @@
class A {
void foo(final Object arg) {
new Object() {
void foo() {
if (arg instanceof Number) {
return;
}
}
void foo1() {
if (arg instanceof Number) {
return;
}
}
};
}
}
@@ -292,6 +292,7 @@ public class DataFlowInspectionTest extends LightCodeInsightFixtureTestCase {
public void testNoGenericCCE() { doTest(); }
public void testLongCircuitOperations() { doTest(); }
public void testUnconditionalForLoop() { doTest(); }
public void testAnonymousMethodIndependence() { doTest(); }
public void _testNullCheckBeforeInstanceof() { doTest(); }
}