diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompositeImmutableSegment.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompositeImmutableSegment.java index 5e8a8b3f1b2..bf9ff13cba8 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompositeImmutableSegment.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompositeImmutableSegment.java @@ -20,7 +20,6 @@ package org.apache.hadoop.hbase.regionserver; import java.util.ArrayList; import java.util.Iterator; -import java.util.LinkedList; import java.util.List; import java.util.SortedSet; @@ -56,7 +55,7 @@ public class CompositeImmutableSegment extends ImmutableSegment { @VisibleForTesting @Override public List getAllSegments() { - return new LinkedList<>(segments); + return new ArrayList<>(segments); } @Override