extract method: fix complete normally custom check (IDEA-161592)

This commit is contained in:
Anna Kozlova
2016-09-23 19:22:20 +03:00
parent 6f2508a731
commit de96e70e27
6 changed files with 102 additions and 7 deletions
@@ -0,0 +1,22 @@
class Test {
private static void f(boolean a, boolean b) {
if (a) {
newMethod();
return;
} else {
System.out.println("");
}
}
private static void newMethod() {
try {
System.out.println();
return;
}
catch (Exception e) {
return;
}
}
}