mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 20:30:42 +07:00
`throw e` won't fix the compilation error, comment - is not really better than empty catch block. GitOrigin-RevId: ea002c332900b032392e766f3dd13fe3258ad49c
14 lines
279 B
Java
14 lines
279 B
Java
// "Add 'catch' clause(s)" "true"
|
|
class a {
|
|
void g() throws Exception {
|
|
}
|
|
void f() {
|
|
try {
|
|
g();
|
|
} catch (Error e) {
|
|
} catch (Exception e) {
|
|
<caret><selection>throw new RuntimeException(e);</selection>
|
|
}
|
|
}
|
|
}
|