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
11 lines
214 B
Java
11 lines
214 B
Java
// "Add 'catch' clause(s)" "true"
|
|
class Foo {
|
|
void test(String s) {
|
|
try {
|
|
System.out.println(s);
|
|
} catch (Exception e) {
|
|
throw new RuntimeException(e);
|
|
}
|
|
}
|
|
}
|