blob: fda3c915e4daafd2ca916420603b7790afb91531 [file] [log] [blame]
// "Surround with try/catch" "true"
public class ExTest {
public static String maybeThrow(String data) throws Ex {
throw new Ex(data);
}
{
String[] a = new String[0];
try {
a = new String[]{maybeThrow("")};
} catch (Ex ex) {
ex.printStackTrace();
}
System.out.println(a);
}
private static class Ex extends Exception {
public Ex(String s) {
}
}
}