mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
18 lines
356 B
Java
18 lines
356 B
Java
// "Add exception to existing catch clause" "false"
|
|
import java.util.*;
|
|
|
|
class MyTest {
|
|
|
|
void demo(List<String> strings) {
|
|
try {
|
|
strings.forEach(this::f<caret>oo);
|
|
}
|
|
catch (Exception ex) {
|
|
// handle
|
|
}
|
|
}
|
|
|
|
private void foo(String s) throws Exception {
|
|
throw new Exception();
|
|
}
|
|
} |