mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
20 lines
370 B
Java
20 lines
370 B
Java
import java.io.IOException;
|
|
class Issue {
|
|
|
|
public static void main(String[] args) {
|
|
<selection>swallow(() -> {
|
|
throw new IOException();
|
|
});</selection>
|
|
}
|
|
|
|
private static void swallow(ThrowsUnchecked r) {
|
|
try {
|
|
r.doAction();
|
|
} catch (IOException ignored) {
|
|
}
|
|
}
|
|
}
|
|
|
|
interface ThrowsUnchecked {
|
|
void doAction() throws IOException;
|
|
} |