Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix a SpotBugs warning
[controller.git]
/
third-party
/
atomix
/
storage
/
src
/
main
/
java
/
io
/
atomix
/
utils
/
serializer
/
KryoIOPool.java
diff --git
a/third-party/atomix/storage/src/main/java/io/atomix/utils/serializer/KryoIOPool.java
b/third-party/atomix/storage/src/main/java/io/atomix/utils/serializer/KryoIOPool.java
index 0f40cfcc1e40747e8896c12d74510d0d807acb49..c9b0e270b6690977a40e4f99122e06520813862f 100644
(file)
--- a/
third-party/atomix/storage/src/main/java/io/atomix/utils/serializer/KryoIOPool.java
+++ b/
third-party/atomix/storage/src/main/java/io/atomix/utils/serializer/KryoIOPool.java
@@
-16,13
+16,12
@@
package io.atomix.utils.serializer;
import java.lang.ref.SoftReference;
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> {
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.function.Function;
abstract class KryoIOPool<T> {
- private final Queue<SoftReference<T>> queue = new ConcurrentLinkedQueue<>();
+ private final
ConcurrentLinked
Queue<SoftReference<T>> queue = new ConcurrentLinkedQueue<>();
private T borrow(final int bufferSize) {
T element;
private T borrow(final int bufferSize) {
T element;