Remove usage of releaseLater(...) that was missed in 0bc30a123e88bc7b038e0c260937581097a903f7

This commit is contained in:
Norman Maurer 2016-11-18 14:47:42 +00:00
parent edc4842309
commit c2565d8dd2

View File

@ -15,8 +15,6 @@
*/
package io.netty.buffer;
import io.netty.util.ReferenceCountUtil;
import io.netty.util.ReferenceCounted;
import org.junit.Test;
import java.io.EOFException;
@ -32,7 +30,7 @@ public class ByteBufStreamTest {
@Test
public void testAll() throws Exception {
ByteBuf buf = ReferenceCountUtil.releaseLater(Unpooled.buffer(0, 65536));
ByteBuf buf = Unpooled.buffer(0, 65536);
try {
new ByteBufOutputStream(null);
@ -178,6 +176,7 @@ public class ByteBufStreamTest {
}
assertEquals(buf.readerIndex(), in.readBytes());
buf.release();
}
@Test