mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Parameter mapping fixed in case if two vars introduced
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
class A {
|
||||
String foo(int i) {
|
||||
if (i > 0) {
|
||||
if (i == 10) return null;
|
||||
System.out.println(i);
|
||||
}
|
||||
return String.valueOf(i);
|
||||
}
|
||||
|
||||
void bar(int x) {
|
||||
if (x > 0) {
|
||||
System.out.println(f<caret>oo(x));
|
||||
}
|
||||
System.out.println("x < 0");
|
||||
}
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
class A {
|
||||
|
||||
void bar(int x) {
|
||||
if (x > 0) {
|
||||
String result = null;
|
||||
boolean finished = false;
|
||||
if (x > 0) {
|
||||
if (x == 10) {
|
||||
finished = true;
|
||||
} else {
|
||||
System.out.println(x);
|
||||
}
|
||||
}
|
||||
if (!finished) {
|
||||
result = String.valueOf(x);
|
||||
}
|
||||
System.out.println(result);
|
||||
}
|
||||
System.out.println("x < 0");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user