blob: c462a10961d47581eda805a5c678b925c340f184 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import java.util.concurrent.atomic.AtomicInteger;
// "Convert to atomic" "true"
class Test {
final AtomicInteger o;
int j = o.get();
Test(int o) {
this.o = new AtomicInteger(o);
}
void foo() {
while ((o = j) != 0) {}
}
}
|