Basic test for method extract: IDEA-CR-53127

GitOrigin-RevId: 3c41530c54d0d26076f65bc38f23993b82e7f56f
This commit is contained in:
Roman.Ivanov
2019-10-02 21:20:28 +07:00
committed by intellij-monorepo-bot
parent 368eaa7581
commit eac8432bb6
2 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
// "Extract method" "false"
class Main {
static boolean test() {
throw new RuntimeException();
}
private void notExtractable() {
while (true) {
<selection>if (test()) {
System.out.println("ads");
break;
} else {
System.out.println("Asd");
if (test()) {
return;
}
System.out.println("ASdasd");
</selection>
}
somethingElse();
}
}
private static void somethingElse() {
}
}