blob: 6eb7f17d262206cb31e7e18e45af1712078a8396 [file]
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;
}