mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 18:50:59 +07:00
23 lines
466 B
Java
23 lines
466 B
Java
// "Add 'catch' clause(s)" "true-preview"
|
|
import java.io.IOException;
|
|
import java.util.function.Supplier;
|
|
|
|
class C {
|
|
static Object get() throws Exception {
|
|
return null;
|
|
}
|
|
|
|
void method() {
|
|
try {
|
|
Supplier<Object> lambda1 = () -> {
|
|
try {
|
|
return C.ge<caret>t();
|
|
} catch (IOException e) {
|
|
throw new RuntimeException();
|
|
}
|
|
};
|
|
} catch( Exception e) {
|
|
throw new RuntimeException(e);
|
|
}
|
|
}
|
|
} |