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 GitHub
parent 2c757d11be
commit 1d802d9da5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);