Browse Source

KAFKA-8563: Remove redundant `NetworkSend.sizeDelimit()` method (#6967)

Reviewers: Ismael Juma <ismael@juma.me.uk>
pull/6982/head
Karan Kumar 5 years ago committed by Ismael Juma
parent
commit
4d1d995a11
  1. 6
      clients/src/main/java/org/apache/kafka/common/network/NetworkSend.java

6
clients/src/main/java/org/apache/kafka/common/network/NetworkSend.java

@ -24,11 +24,7 @@ import java.nio.ByteBuffer; @@ -24,11 +24,7 @@ import java.nio.ByteBuffer;
public class NetworkSend extends ByteBufferSend {
public NetworkSend(String destination, ByteBuffer buffer) {
super(destination, sizeDelimit(buffer));
}
private static ByteBuffer[] sizeDelimit(ByteBuffer buffer) {
return new ByteBuffer[] {sizeBuffer(buffer.remaining()), buffer};
super(destination, sizeBuffer(buffer.remaining()), buffer);
}
private static ByteBuffer sizeBuffer(int size) {

Loading…
Cancel
Save