mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
Fixes IDEA-37432 "Inline Method refactoring is not supported when return statement interrupts the execution flow" is wrong Fixes IDEA-158665 Support Inline Method refactoring when return statement interrupts the execution flow Fixes IDEA-180007 Inline method with returns should work when inlining point is the only expression in a loop or lambda body
14 lines
231 B
Plaintext
14 lines
231 B
Plaintext
class A {
|
|
|
|
void bar(int x) {
|
|
if (x > 0) {
|
|
if(Math.random() > 2) {
|
|
System.out.println("xyz");
|
|
} else {
|
|
System.out.println("oops");
|
|
}
|
|
}
|
|
System.out.println("x < 0");
|
|
}
|
|
}
|