mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-108814 Assertion is considered active code by code inspections, yields bogus inspections
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
class Foo {
|
||||
Object getObjectFromElsewhere() { return null; }
|
||||
void foo() {
|
||||
Object object = getObjectFromElsewhere();
|
||||
assert (object != null);
|
||||
if (object != null) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user