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