mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 00:20:55 +07:00
`throw e` won't fix the compilation error, comment - is not really better than empty catch block. GitOrigin-RevId: ea002c332900b032392e766f3dd13fe3258ad49c
13 lines
288 B
Java
13 lines
288 B
Java
class Test {
|
|
int foo() throws Exception { return 1;}
|
|
|
|
void fooBar() throws IllegalArgumentException{
|
|
int a = 0;
|
|
try {
|
|
a = foo();
|
|
} catch (Exception e) {
|
|
throw new RuntimeException(e);
|
|
}
|
|
System.out.println(a);
|
|
}
|
|
} |