mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 19:58:23 +07:00
`throw e` won't fix the compilation error, comment - is not really better than empty catch block. GitOrigin-RevId: ea002c332900b032392e766f3dd13fe3258ad49c
11 lines
244 B
Java
11 lines
244 B
Java
// "Add 'catch' clause(s)" "true"
|
|
class Foo {
|
|
void test(String s) {
|
|
try {
|
|
System.out.println(Integer.parseInt(s));
|
|
} catch (NumberFormatException e) {
|
|
throw new RuntimeException(e);
|
|
}
|
|
}
|
|
}
|