mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
[extract method] IDEA-251837 fix texts GitOrigin-RevId: 37da2e7e8f83a4d85a87c644788a66ce6ea1e05f
26 lines
563 B
Java
26 lines
563 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);
|
|
}
|
|
}
|
|
|
|
private @NotNull String newMethod(String s) throws MyException {
|
|
bar();
|
|
s = "b";
|
|
return s;
|
|
}
|
|
|
|
void bar() throws MyException {
|
|
if (true) throw new MyException();
|
|
}
|
|
} |