From 6e688e90a1e70247705ab8772cdff1e12710c7fb Mon Sep 17 00:00:00 2001 From: linxin Date: Tue, 26 Nov 2024 20:04:16 +0800 Subject: [PATCH] format code --- .../com/alipay/remoting/rpc/protocol/RpcCommandDecoderV2.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/alipay/remoting/rpc/protocol/RpcCommandDecoderV2.java b/src/main/java/com/alipay/remoting/rpc/protocol/RpcCommandDecoderV2.java index 9544a92a..8c30c6c3 100644 --- a/src/main/java/com/alipay/remoting/rpc/protocol/RpcCommandDecoderV2.java +++ b/src/main/java/com/alipay/remoting/rpc/protocol/RpcCommandDecoderV2.java @@ -203,8 +203,7 @@ public void decode(ChannelHandlerContext ctx, ByteBuf in, List out) thro } if (contentLen == 0) { content = new byte[0]; - } - if (contentLen > 0) { + } else if (contentLen > 0) { content = new byte[contentLen]; in.readBytes(content); }