mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-02 02:32:34 +07:00
GitOrigin-RevId: d55ad9f7e81367d6ae8b362f21ca250edb084e42
16 lines
325 B
Java
16 lines
325 B
Java
class Main {
|
|
static int test() {
|
|
String msg = "ERR1";
|
|
try {
|
|
msg = "ERR2"; // HERE
|
|
return throwsNFE();
|
|
} catch (NumberFormatException e) {
|
|
System.err.println(msg);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
static int throwsNFE() throws NumberFormatException {
|
|
throw new NumberFormatException("NFE");
|
|
}
|
|
} |