mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
extract method: don't include predefined 0 into exit points when try/finally is processed (IDEA-146332)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class C {
|
||||
private void foo() {
|
||||
System.out.println();
|
||||
<selection>try {}
|
||||
finally {
|
||||
while (true) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
</selection>
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
class C {
|
||||
private void foo() {
|
||||
System.out.println();
|
||||
newMethod();
|
||||
|
||||
}
|
||||
|
||||
private void newMethod() {
|
||||
try {}
|
||||
finally {
|
||||
while (true) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user