Fix checkstyle

This commit is contained in:
Trustin Lee 2013-03-06 17:10:26 +09:00
parent 81ce0555e6
commit 3d6d9f394d

View File

@ -408,7 +408,8 @@ final class UnpooledUnsafeDirectByteBuf extends AbstractReferenceCountedByteBuf
@Override
public ByteBuf copy(int index, int length) {
checkIndex(index, length);
UnpooledUnsafeDirectByteBuf copy = (UnpooledUnsafeDirectByteBuf) alloc().directBuffer(capacity(), maxCapacity());
UnpooledUnsafeDirectByteBuf copy =
(UnpooledUnsafeDirectByteBuf) alloc().directBuffer(capacity(), maxCapacity());
if (length != 0) {
PlatformDependent.copyMemory(addr(index), copy.addr(index), length);
copy.setIndex(index, index + length);