This closes #1053
This commit is contained in:
commit
52d25431f2
|
@ -28,7 +28,7 @@ import org.apache.activemq.artemis.core.buffers.impl.ChannelBufferWrapper;
|
|||
public final class ActiveMQBuffers {
|
||||
|
||||
|
||||
private static final PooledByteBufAllocator ALLOCATOR = new PooledByteBufAllocator();
|
||||
private static final PooledByteBufAllocator ALLOCATOR = PooledByteBufAllocator.DEFAULT;
|
||||
|
||||
/**
|
||||
* Creates a <em>self-expanding</em> ActiveMQBuffer with the given initial size
|
||||
|
|
|
@ -28,7 +28,7 @@ import io.netty.buffer.UnpooledByteBufAllocator;
|
|||
*/
|
||||
public class PartialPooledByteBufAllocator implements ByteBufAllocator {
|
||||
|
||||
private static final ByteBufAllocator POOLED = new PooledByteBufAllocator(false);
|
||||
private static final ByteBufAllocator POOLED = PooledByteBufAllocator.DEFAULT;
|
||||
private static final ByteBufAllocator UNPOOLED = new UnpooledByteBufAllocator(false);
|
||||
|
||||
public static final PartialPooledByteBufAllocator INSTANCE = new PartialPooledByteBufAllocator();
|
||||
|
|
|
@ -28,7 +28,7 @@ import io.netty.buffer.UnpooledByteBufAllocator;
|
|||
*/
|
||||
public class PartialPooledByteBufAllocator implements ByteBufAllocator {
|
||||
|
||||
private static final ByteBufAllocator POOLED = new PooledByteBufAllocator(false);
|
||||
private static final ByteBufAllocator POOLED = PooledByteBufAllocator.DEFAULT;
|
||||
private static final ByteBufAllocator UNPOOLED = new UnpooledByteBufAllocator(false);
|
||||
|
||||
public static final PartialPooledByteBufAllocator INSTANCE = new PartialPooledByteBufAllocator();
|
||||
|
|
Loading…
Reference in New Issue