blob: 2cb6adb41d38b3f5df72f44f49493554d68490a8 [file] [log] [blame]
// "Surround with try/catch" "false"
public class ExTest {
public static void maybeThrow(String data) throws Ex {
throw new Ex(data);
}
{
Block<String> b = (t) -> ExTest.may<caret>beThrow(t);
}
private static class Ex extends Throwable {
public Ex(String s) {
}
}
}
interface Block<T> {
public void accept(T t);
}