exceptions collection: don't visit anonymous class body (IDEA-198967)

simple visit of expression list doesn't work as walking visitor starts to go down when it starts an element and element has no children
This commit is contained in:
Anna.Kozlova
2018-09-18 18:54:06 +02:00
parent a49f280b3f
commit 0acc44b025
3 changed files with 39 additions and 5 deletions
@@ -0,0 +1,30 @@
import java.io.IOException;
import java.util.concurrent.Callable;
class MyTest {
public static void main() {
try {
new Callable() {
@Override
public Object call() throws IOException {
throw new IOException();
}
};
new Foo("") {
@Override
public Object call() throws IOException {
throw new IOException();
}
};
}
catch (Exception e) {
throw e;
}
}
static abstract class Foo implements Callable {
protected Foo(Object o) {
}
}
}