Merge pull request #13498 from jasontedor/queues-be-gone
Remove and forbid use of com.google.common.collect.Queues
This commit is contained in:
commit
41cbda7a94
|
@ -20,8 +20,8 @@
|
|||
package org.elasticsearch.common.recycler;
|
||||
|
||||
import com.carrotsearch.hppc.BitMixer;
|
||||
import com.google.common.collect.Queues;
|
||||
import org.elasticsearch.ElasticsearchException;
|
||||
|
||||
import java.util.ArrayDeque;
|
||||
|
||||
public enum Recyclers {
|
||||
;
|
||||
|
@ -44,7 +44,7 @@ public enum Recyclers {
|
|||
* Return a recycler based on a deque.
|
||||
*/
|
||||
public static <T> Recycler<T> deque(Recycler.C<T> c, int limit) {
|
||||
return new DequeRecycler<>(c, Queues.<T>newArrayDeque(), limit);
|
||||
return new DequeRecycler<>(c, new ArrayDeque<>(), limit);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -98,3 +98,4 @@ com.google.common.base.Preconditions#checkNotNull(java.lang.Object)
|
|||
com.google.common.base.Preconditions#checkNotNull(java.lang.Object, java.lang.Object)
|
||||
com.google.common.base.Preconditions#checkNotNull(java.lang.Object, java.lang.String, java.lang.Object[])
|
||||
com.google.common.collect.ImmutableSortedSet
|
||||
com.google.common.collect.Queues
|
||||
|
|
Loading…
Reference in New Issue