disable add catch exception for method references (IDEA-205952)

This commit is contained in:
Anna.Kozlova
2019-01-24 13:59:37 +01:00
parent fb19e2ef13
commit 489bed949a
2 changed files with 19 additions and 1 deletions
@@ -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();
}
}