mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Simplify some redundant code
Closes gh-24586 Co-authored-by: Sam Brannen <sbrannen@pivotal.io>
This commit is contained in:
+1
-2
@@ -227,8 +227,7 @@ public class ProtobufDecoder extends ProtobufCodecSupport implements Decoder<Mes
|
||||
this.output = input.factory().allocateBuffer(this.messageBytesToRead);
|
||||
}
|
||||
|
||||
chunkBytesToRead = this.messageBytesToRead >= input.readableByteCount() ?
|
||||
input.readableByteCount() : this.messageBytesToRead;
|
||||
chunkBytesToRead = Math.min(this.messageBytesToRead, input.readableByteCount());
|
||||
remainingBytesToRead = input.readableByteCount() - chunkBytesToRead;
|
||||
|
||||
byte[] bytesToWrite = new byte[chunkBytesToRead];
|
||||
|
||||
Reference in New Issue
Block a user