mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
17 lines
360 B
Java
17 lines
360 B
Java
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;
|
|
|
|
public class NonAssignedFieldsTest {
|
|
|
|
static class Node<T> {
|
|
volatile Node<?> next;
|
|
|
|
static final AtomicReferenceFieldUpdater<Node,Node> nextUpdater =
|
|
AtomicReferenceFieldUpdater.newUpdater(Node.class, Node.class, "next");
|
|
}
|
|
|
|
{
|
|
Node<?> node = null;
|
|
Node<?> next = node.next;
|
|
}
|
|
}
|