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:
Anna.Kozlova
2016-07-20 18:23:02 +02:00
parent d4c8dc223d
commit 5170b5d3ea
4 changed files with 56 additions and 0 deletions
@@ -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;
}