mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-01 09:04:15 +07:00
GitOrigin-RevId: 3aae5c738d48c38144f6a78c36738121831ae5a5
27 lines
463 B
Java
27 lines
463 B
Java
class RenamedParameter {
|
|
private boolean c;
|
|
|
|
public void foo() {
|
|
String a = "s";
|
|
String b = "t";
|
|
newMethod(a, b);
|
|
}
|
|
|
|
private void newMethod(String a, String b) {
|
|
if (c) {
|
|
String t = b;
|
|
x(t);
|
|
} else if (!b.equals(a)) {
|
|
x(b);
|
|
}
|
|
}
|
|
|
|
public void bar() {
|
|
String a = "t";
|
|
String b = "s";
|
|
newMethod(a, b);
|
|
}
|
|
|
|
void x(String s) {}
|
|
}
|