blob: cb32e0ba130b10a0ee97aab849fa11a77b0e8d52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import java.util.concurrent.atomic.AtomicReference;
class Test {
AtomicReference<String> s = new AtomicReference<String>("");
void foo() {
if (s == null) {
System.out.println(s.get());
}
}
}
|