surround with try/catch: ignore nested functional expressions from unchecked analyzes

This commit is contained in:
Anna Kozlova
2014-12-18 14:13:22 +01:00
parent 6336e973c9
commit 6e761e661f
5 changed files with 43 additions and 7 deletions
@@ -0,0 +1,14 @@
class Test {
public static void main(String[] args){
<selection>I i = ExceptionTest::foo;</selection>
}
class Ex extends Exception {}
static void foo() throws Ex {}
interface I {
void f();
}
}
@@ -0,0 +1,18 @@
class Test {
public static void main(String[] args){
try {
I i = ExceptionTest::foo;
} catch (Exception e) {
e.printStackTrace();
}
}
class Ex extends Exception {}
static void foo() throws Ex {}
interface I {
void f();
}
}