mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-17 21:43:33 +07:00
disable add catch exception for method references (IDEA-205952)
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
// "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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user