The implementation of queue in KryoIOPool is always
ConcurrentLinkedQueue, which never returns false. Fix the declaration
to make that clear to SpotBugs.
JIRA: CONTROLLER-2071
Change-Id: I0c0dee29224e128413bec9cda903610dbf137feb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
package io.atomix.utils.serializer;
import java.lang.ref.SoftReference;
-import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.function.Function;
abstract class KryoIOPool<T> {
- private final Queue<SoftReference<T>> queue = new ConcurrentLinkedQueue<>();
+ private final ConcurrentLinkedQueue<SoftReference<T>> queue = new ConcurrentLinkedQueue<>();
private T borrow(final int bufferSize) {
T element;