We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 829b85c commit 4258e3cCopy full SHA for 4258e3c
src/com/rabbitmq/client/impl/CommandAssembler.java
@@ -141,14 +141,10 @@ public synchronized byte[] getContentBody() {
141
return coalesceContentBody();
142
}
143
144
- private static int byteArrayLength(byte[] ba) {
145
- return (ba == null) ? 0 : ba.length;
146
- }
147
-
148
private void appendBodyFragment(byte[] fragment) {
149
if (fragment == null || fragment.length == 0) return;
150
bodyN.add(fragment);
151
- bodyLength += byteArrayLength(fragment);
+ bodyLength += fragment.length;
152
153
154
/**
0 commit comments