mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
inference: proper exceptions thrown checks (IDEA-152577)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import java.io.IOException;
|
||||
|
||||
class GenericException {
|
||||
{
|
||||
applyFunc(t -> throwsException());
|
||||
}
|
||||
|
||||
private static <T, E extends Exception> void applyFunc(CheckedFunction<T, E> function) {}
|
||||
|
||||
|
||||
private static void throwsException() throws Exception {}
|
||||
|
||||
interface CheckedFunction<T, E extends Exception> {
|
||||
void apply(T t) throws E, IOException;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user