mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
`throw e` won't fix the compilation error, comment - is not really better than empty catch block. GitOrigin-RevId: ea002c332900b032392e766f3dd13fe3258ad49c
13 lines
254 B
Java
13 lines
254 B
Java
// "Surround with try/catch" "true"
|
|
class C {
|
|
native boolean foo() throws Exception;
|
|
|
|
void test() {
|
|
try {
|
|
if(foo() && foo())
|
|
} catch (Exception e) {
|
|
throw new RuntimeException(e);
|
|
}
|
|
}
|
|
|
|
} |