mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
25 lines
384 B
Java
25 lines
384 B
Java
class DecrementDifferentInnerFieldsDuplicate {
|
|
class C {
|
|
int x;
|
|
int y;
|
|
}
|
|
|
|
private void foo(C a, C b) {
|
|
|
|
newMethod(a);
|
|
|
|
if (b.y > 0) {
|
|
bar(b.y);
|
|
b.y--;
|
|
}
|
|
}
|
|
|
|
private void newMethod(C a) {
|
|
if (a.x > 0) {
|
|
bar(a.x);
|
|
a.x--;
|
|
}
|
|
}
|
|
|
|
private void bar(int i) { }
|
|
} |