mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 10:07:41 +07:00
DfaMemoryState is unfortunately mutable; use defensive copying
This commit is contained in:
@@ -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(); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user