mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 14:50:53 +07:00
21 lines
375 B
Java
21 lines
375 B
Java
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;
|
|
});
|
|
}
|
|
}
|