Merge pull request #13498 from jasontedor/queues-be-gone

Remove and forbid use of com.google.common.collect.Queues
This commit is contained in:
Jason Tedor 2015-09-11 00:00:26 -04:00
commit 41cbda7a94
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