mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
extract method: do not fold params by default when they are used inside conditional stmts (IDEA-92815)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
void foo(String[] a, int i, boolean b) {
|
||||
<selection>if (b) {
|
||||
System.out.println(a[i]);
|
||||
}</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
class Test {
|
||||
void foo(String[] a, int i, boolean b) {
|
||||
newMethod(a, i, b);
|
||||
}
|
||||
|
||||
private void newMethod(String[] a, int i, boolean b) {
|
||||
if (b) {
|
||||
System.out.println(a[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user