Files
openide/java/java-tests/testData/refactoring/extractMethod/IDEADEV33368_after.java
Dmitry Jemerov b7e66aee44 test++
2009-09-10 20:21:16 +04:00

21 lines
379 B
Java

class Test {
void m(boolean b) {
int x = 42;
try {
x = newMethod(b, x);
} catch(Exception e) {
System.out.println(x);
}
}
private int newMethod(boolean b, int x) throws Exception {
if(b) {
x = 23;
throw new Exception();
}
return x;
}
}