mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 00:50:53 +07:00
27 lines
567 B
Java
27 lines
567 B
Java
import org.jetbrains.annotations.NotNull;
|
|
|
|
class A {
|
|
static class MyException extends Exception{ MyException(){ super(); } }
|
|
|
|
void foo() {
|
|
String s = "";
|
|
try {
|
|
s = "a";
|
|
s = newMethod(s);
|
|
bar();
|
|
} catch (MyException e) {
|
|
throw new RuntimeException(s, e);
|
|
}
|
|
}
|
|
|
|
@NotNull
|
|
private String newMethod(String s) throws MyException {
|
|
bar();
|
|
s = "b";
|
|
return s;
|
|
}
|
|
|
|
void bar() throws MyException {
|
|
if (true) throw new MyException();
|
|
}
|
|
} |