mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
21 lines
366 B
Java
21 lines
366 B
Java
class DecrementDifferentStaticFieldsDuplicate {
|
|
static class C {
|
|
static int x;
|
|
static int y;
|
|
}
|
|
|
|
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) { }
|
|
} |