From 98a2fe7e5acf1864923e54a1ba40720e859f12bd Mon Sep 17 00:00:00 2001 From: Andrew Purtell Date: Thu, 4 Jun 2015 12:01:49 +0000 Subject: [PATCH] HBASE-13837 [0.98] TestBoundedByteBufferPool does not compile with JDK 1.6 --- .../java/org/apache/hadoop/hbase/io/TestBoundedByteBufferPool.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-common/src/test/java/org/apache/hadoop/hbase/io/TestBoundedByteBufferPool.java b/hbase-common/src/test/java/org/apache/hadoop/hbase/io/TestBoundedByteBufferPool.java index 5074b4c..126b06f 100644 --- a/hbase-common/src/test/java/org/apache/hadoop/hbase/io/TestBoundedByteBufferPool.java +++ b/hbase-common/src/test/java/org/apache/hadoop/hbase/io/TestBoundedByteBufferPool.java @@ -20,7 +20,7 @@ package org.apache.hadoop.hbase.io; import static org.junit.Assert.assertEquals; import java.nio.ByteBuffer; -import java.util.concurrent.ConcurrentLinkedDeque; +import java.util.concurrent.ConcurrentLinkedQueue; import org.apache.hadoop.hbase.testclassification.SmallTests; import org.junit.After; @@ -88,7 +88,7 @@ public class TestBoundedByteBufferPool { @Test public void testBufferSizeGrowWithMultiThread() throws Exception { - final ConcurrentLinkedDeque bufferQueue = new ConcurrentLinkedDeque(); + final ConcurrentLinkedQueue bufferQueue = new ConcurrentLinkedQueue(); int takeBufferThreadsCount = 30; int putBufferThreadsCount = 1; Thread takeBufferThreads[] = new Thread[takeBufferThreadsCount]; -- 2.2.2