summaryrefslogtreecommitdiff
path: root/plugins/typeMigration/testData/intentions/atomic/after8.java
blob: bdfbd5b03a4d41c8302d5567e669ee2e50857de4 (plain)
1
2
3
4
5
6
7
8
9
10
11
import java.util.concurrent.atomic.AtomicInteger;

// "Convert to atomic" "true"
class Test {
  final AtomicInteger o = new AtomicInteger();
  int j = o.get();

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