extract method: don't include predefined 0 into exit points when try/finally is processed (IDEA-146332)

This commit is contained in:
Anna Kozlova
2015-10-14 11:12:33 +02:00
parent 4a900f191d
commit cc02620e6d
4 changed files with 33 additions and 3 deletions
@@ -0,0 +1,12 @@
class C {
private void foo() {
System.out.println();
<selection>try {}
finally {
while (true) {
break;
}
}
</selection>
}
}
@@ -0,0 +1,16 @@
class C {
private void foo() {
System.out.println();
newMethod();
}
private void newMethod() {
try {}
finally {
while (true) {
break;
}
}
}
}