Remove and forbid use of com.google.common.collect.Queues

This commit removes and now forbids all uses of
com.google.common.collect.Queues across the codebase. This is one of
many steps in the eventual removal of Guava as a dependency.

Relates #13224
This commit is contained in:
Jason Tedor 2015-09-10 23:25:59 -04:00
parent 65353b8a32
commit b5b22d4b01
2 changed files with 4 additions and 3 deletions

View File

@ -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);
}
/**

View File

@ -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