mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
new inference: infer exceptions for inner lambda body calls (IDEA-134225)
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
import java.io.IOException;
|
||||
import java.util.Optional;
|
||||
|
||||
class Test {
|
||||
|
||||
interface Extractor<T> {
|
||||
T extractData() throws IOException;
|
||||
}
|
||||
|
||||
public static <T> T query(Extractor<T> rse) {
|
||||
return null;
|
||||
}
|
||||
|
||||
static {
|
||||
final Optional<String> query = query(() -> {
|
||||
final String type = Optional.<String>empty().orElseThrow(null);
|
||||
return null;
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user