mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 00:50:53 +07:00
25 lines
394 B
Java
25 lines
394 B
Java
class DecrementDifferentStaticFieldsDuplicate {
|
|
static class C {
|
|
static int x;
|
|
static int y;
|
|
}
|
|
|
|
private void foo() {
|
|
|
|
newMethod();
|
|
|
|
if (C.y > 0) {
|
|
bar(C.y);
|
|
C.y--;
|
|
}
|
|
}
|
|
|
|
private void newMethod() {
|
|
if (C.x > 0) {
|
|
bar(C.x);
|
|
C.x--;
|
|
}
|
|
}
|
|
|
|
private void bar(int i) { }
|
|
} |