summaryrefslogtreecommitdiff
path: root/plugins/typeMigration/testData/intentions/atomic/before9.java
blob: a9f693800f816553cbc04c9f80f4df23e709ca50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// "Convert to atomic" "true"
class Test {
  final int <caret>o;
  int j = o;

  Test(int o) {
    this.o = o;
  }

  void foo() {
    while ((o = j) != 0) {}
  }
}