@Test public void testWrapRetainedDuplicate() { assertWrapped(newBuffer(8).retainedDuplicate()); }
@Override public ByteBuf retainedDuplicate() { return new SimpleLeakAwareByteBuf(super.retainedDuplicate(), leak); }
SimpleLeakAwareByteBuf extends WrappedByteBuf { @Override public ByteBuf retainedDuplicate() { return new SimpleLeakAwareByteBuf(super.retainedDuplicate(), leak); } }
SimpleLeakAwareByteBuf extends WrappedByteBuf { @Override public ByteBuf retainedDuplicate() { return new SimpleLeakAwareByteBuf(super.retainedDuplicate(), leak); } SimpleLeakAwareByteBuf(ByteBuf buf, ResourceLeak leak); }
SimpleLeakAwareByteBuf extends WrappedByteBuf { @Override public ByteBuf retainedDuplicate() { return new SimpleLeakAwareByteBuf(super.retainedDuplicate(), leak); } SimpleLeakAwareByteBuf(ByteBuf buf, ResourceLeak leak); @Override ByteBuf touch(); @Override ByteBuf touch(Object hint); @Override boolean release(); @Override boolean release(int decrement); @Override ByteBuf order(ByteOrder endianness); @Override ByteBuf slice(); @Override ByteBuf retainedSlice(); @Override ByteBuf slice(int index, int length); @Override ByteBuf retainedSlice(int index, int length); @Override ByteBuf duplicate(); @Override ByteBuf retainedDuplicate(); @Override ByteBuf readSlice(int length); @Override ByteBuf readRetainedSlice(int length); @Override ByteBuf asReadOnly(); }
SimpleLeakAwareByteBuf extends WrappedByteBuf { @Override public ByteBuf retainedDuplicate() { return new SimpleLeakAwareByteBuf(super.retainedDuplicate(), leak); } SimpleLeakAwareByteBuf(ByteBuf buf, ResourceLeak leak); @Override ByteBuf touch(); @Override ByteBuf touch(Object hint); @Override boolean release(); @Override boolean release(int decrement); @Override ByteBuf order(ByteOrder endianness); @Override ByteBuf slice(); @Override ByteBuf retainedSlice(); @Override ByteBuf slice(int index, int length); @Override ByteBuf retainedSlice(int index, int length); @Override ByteBuf duplicate(); @Override ByteBuf retainedDuplicate(); @Override ByteBuf readSlice(int length); @Override ByteBuf readRetainedSlice(int length); @Override ByteBuf asReadOnly();  }