summaryrefslogtreecommitdiff
path: root/plugins/typeMigration/testData/intentions/atomic/after7.java
blob: 19336f0bc61bb0fcac97bd867783391c2c7a92a3 (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(0);
  int j = o.get();

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