abbccdda commented on a change in pull request #9144: URL: https://github.com/apache/kafka/pull/9144#discussion_r467975757
########## File path: clients/src/main/java/org/apache/kafka/common/requests/RequestHeader.java ########## @@ -37,11 +37,22 @@ public RequestHeader(Struct struct, short headerVersion) { } public RequestHeader(ApiKeys requestApiKey, short requestVersion, String clientId, int correlationId) { - this(new RequestHeaderData(). - setRequestApiKey(requestApiKey.id). - setRequestApiVersion(requestVersion). - setClientId(clientId). - setCorrelationId(correlationId), + this(requestApiKey, requestVersion, clientId, correlationId, null, null); + } + + public RequestHeader(ApiKeys requestApiKey, Review comment: We do have a constructor which doesn't contain the two fields above. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org