=act #19216 Fix AbstractNodeQueue value nepotism
This commit is contained in:
parent
f283b8bc32
commit
36e736582b
1 changed files with 5 additions and 1 deletions
|
|
@ -78,7 +78,11 @@ public abstract class AbstractNodeQueue<T> extends AtomicReference<AbstractNodeQ
|
|||
public final T poll() {
|
||||
final Node<T> next = pollNode();
|
||||
if (next == null) return null;
|
||||
else return next.value;
|
||||
else {
|
||||
T value = next.value;
|
||||
next.value = null;
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue