summaryrefslogtreecommitdiff
path: root/java/typeMigration/testData/refactoring/typeMigrationByAtomic/reverseIntArray/after/Test.java
blob: 401714230d3ccc2715afce5e617e9e6502820e59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import java.util.concurrent.atomic.AtomicIntegerArray;

class Test {
    int[] a = new int[1];


    void foo() {
        a[0]++;
        System.out.println(++a[0]);
        a[0]--;
        if (--a[0] == 0) {
            a[0] += ((2));
            a[0] = a[0] * 2;
            if (a[0] == 0) {
                System.out.println(a[0] + 7);
            }
        }
    }
}