summaryrefslogtreecommitdiff
path: root/plugins/typeMigration/testData/refactoring/typeMigrationByAtomic/directIntArray/before/Test.java
blob: 5d39cf2963c614902bcb203fe3b8cc9a08f52f93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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] *= 2;
          if (a[0] == 0) {
              System.out.println(a[0] + 7);
          }
      }
      a = new int[0];
  }
}