mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
NotNullValues mustn't end up in equivalence classes table.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class ASD {
|
||||
static void foo(Object any) {
|
||||
boolean a = false;
|
||||
boolean b = false;
|
||||
while (true) {
|
||||
boolean trg = bar() == any;
|
||||
|
||||
a = a || trg;
|
||||
b = b || !trg;
|
||||
|
||||
if (b && a) break;
|
||||
}
|
||||
}
|
||||
|
||||
@NotNull
|
||||
static Object bar() {
|
||||
return new Object();
|
||||
}
|
||||
}
|
||||
@@ -50,6 +50,7 @@ public class DataFlowInspectionFixtureTest extends JavaCodeInsightFixtureTestCas
|
||||
public void testFieldInAnonymous() throws Throwable { doTest(); }
|
||||
public void testNullableField() throws Throwable { doTest(); }
|
||||
public void testCanBeNullDoesntImplyIsNull() throws Throwable { doTest(); }
|
||||
public void testAnnReport() throws Throwable { doTest(); }
|
||||
|
||||
public void testBigMethodNotComplex() throws Throwable { doTest(); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user