Remove usage of releaseLater(...) that was missed in 0bc30a123e88bc7b038e0c260937581097a903f7
This commit is contained in:
parent
edc4842309
commit
c2565d8dd2
@ -15,8 +15,6 @@
|
|||||||
*/
|
*/
|
||||||
package io.netty.buffer;
|
package io.netty.buffer;
|
||||||
|
|
||||||
import io.netty.util.ReferenceCountUtil;
|
|
||||||
import io.netty.util.ReferenceCounted;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.io.EOFException;
|
import java.io.EOFException;
|
||||||
@ -32,7 +30,7 @@ public class ByteBufStreamTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAll() throws Exception {
|
public void testAll() throws Exception {
|
||||||
ByteBuf buf = ReferenceCountUtil.releaseLater(Unpooled.buffer(0, 65536));
|
ByteBuf buf = Unpooled.buffer(0, 65536);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
new ByteBufOutputStream(null);
|
new ByteBufOutputStream(null);
|
||||||
@ -178,6 +176,7 @@ public class ByteBufStreamTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
assertEquals(buf.readerIndex(), in.readBytes());
|
assertEquals(buf.readerIndex(), in.readBytes());
|
||||||
|
buf.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user