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:
skyguard1 2021-04-22 14:21:20 +08:00 committed by Norman Maurer
parent 0a2a24f39d
commit bf0c0104b0
1 changed files with 3 additions and 0 deletions

View File

@ -1659,6 +1659,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);