mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
22 lines
382 B
Java
22 lines
382 B
Java
class DecrementDifferentChainedFieldsDuplicate {
|
|
static class C {
|
|
int x;
|
|
int y;
|
|
}
|
|
public static final C c;
|
|
|
|
private void foo() {
|
|
<selection>
|
|
if (c.x > 0) {
|
|
bar(c.x);
|
|
c.x--;
|
|
}</selection>
|
|
|
|
if (c.y > 0) {
|
|
bar(c.y);
|
|
c.y--;
|
|
}
|
|
}
|
|
|
|
private void bar(int i) { }
|
|
} |