Add default block to CompositeByteBuf (#11178)
Motivation: Switch statements should always have a default block to ensure we not "fall-through" by mistake. Modification: Add default block Result: code cleanup. Signed-off-by: xingrufei <xingrufei@sogou-inc.com> Co-authored-by: xingrufei <xingrufei@sogou-inc.com>
This commit is contained in:
parent
2c757d11be
commit
1d802d9da5
@ -1660,6 +1660,9 @@ public class CompositeByteBuf extends AbstractReferenceCountedByteBuf implements
|
||||
if (buf.nioBufferCount() == 1) {
|
||||
return buf.nioBuffer(c.idx(index), length);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
ByteBuffer[] buffers = nioBuffers(index, length);
|
||||
|
Loading…
Reference in New Issue
Block a user