mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
introduce constant: don't traverse inside class or lambda to check unhandled throwables; check for calls to instance methods though
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
import java.io.IOException;
|
||||
class Test {
|
||||
void bar() throws IOException {}
|
||||
|
||||
I get() {
|
||||
return <selection>new I() {
|
||||
@Override
|
||||
public void foo() throws IOException {
|
||||
bar();
|
||||
}
|
||||
}</selection>;
|
||||
}
|
||||
}
|
||||
|
||||
interface I {
|
||||
void foo() throws IOException;
|
||||
}
|
||||
Reference in New Issue
Block a user