IDEA-108814 Assertion is considered active code by code inspections, yields bogus inspections

This commit is contained in:
peter
2013-06-18 18:57:17 +02:00
parent 4b7442e27a
commit a467d40a35
6 changed files with 45 additions and 5 deletions
@@ -0,0 +1,10 @@
class Foo {
Object getObjectFromElsewhere() { return null; }
void foo() {
Object object = getObjectFromElsewhere();
assert (object != null);
if (object != null) {
return;
}
}
}