mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-17 12:51:04 +07:00
java inference: ease assertion for lambdas in non-generic calls (EA-143883)
GitOrigin-RevId: 0e5ff0aa54375926c8ea5e2140458457250034dc
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0000a12866
commit
eb79bfc3d3
+18
@@ -0,0 +1,18 @@
|
||||
import java.util.function.Function;
|
||||
|
||||
class SomeClass implements IdeaBloopers11 {
|
||||
void foo(Function<String, String> f) {}
|
||||
|
||||
void bar() {
|
||||
fo<caret>o(s -> {
|
||||
if (s.contains("a")) {
|
||||
throw baz(s);
|
||||
}
|
||||
return s;
|
||||
});
|
||||
}
|
||||
|
||||
private NullPointerException baz(String s) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user