mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 15:41:26 +07:00
surround with try/catch: ignore nested functional expressions from unchecked analyzes
This commit is contained in:
+14
@@ -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();
|
||||
}
|
||||
}
|
||||
+18
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user