diff options
Diffstat (limited to 'src/junit/com/jogamp/common/util/TestLFRingBuffer01.java')
-rw-r--r-- | src/junit/com/jogamp/common/util/TestLFRingBuffer01.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/junit/com/jogamp/common/util/TestLFRingBuffer01.java b/src/junit/com/jogamp/common/util/TestLFRingBuffer01.java index 52e433d..bcfeb11 100644 --- a/src/junit/com/jogamp/common/util/TestLFRingBuffer01.java +++ b/src/junit/com/jogamp/common/util/TestLFRingBuffer01.java @@ -32,17 +32,11 @@ import com.jogamp.common.util.LFRingbuffer; import com.jogamp.common.util.Ringbuffer; public class TestLFRingBuffer01 extends RingBuffer01Base { - static final Ringbuffer.AllocEmptyArray<Integer> allocEmptyIntArray = new Ringbuffer.AllocEmptyArray<Integer>() { - @Override - public Integer[] newArray(int size) { - return new Integer[size]; - } }; - public Ringbuffer<Integer> createEmpty(int initialCapacity) { - return new LFRingbuffer<Integer>(initialCapacity, allocEmptyIntArray); + return new LFRingbuffer<Integer>(Integer[].class, initialCapacity); } public Ringbuffer<Integer> createFull(Integer[] source) { - return new LFRingbuffer<Integer>(source, allocEmptyIntArray); + return new LFRingbuffer<Integer>(source); } public static void main(String args[]) { |