jsancio commented on code in PR #19353:
URL: https://github.com/apache/kafka/pull/19353#discussion_r2052833219


##########
clients/src/main/java/org/apache/kafka/common/requests/ApiVersionsResponse.java:
##########
@@ -152,19 +151,19 @@ public boolean zkMigrationReady() {
         return data.zkMigrationReady();
     }
 
-    public static ApiVersionsResponse parse(ByteBuffer buffer, short version) {
+    public static ApiVersionsResponse parse(ByteBufferAccessor readable, short 
version) {

Review Comment:
   The rest of the implementations of `parse` but this one take a `Readable`. 
Did you consider adding `Readable slice()` to `Readable`? If you do that, this 
implementation can call `slice()`so that it can parse the response twice if the 
version is incorrect. 



-- 
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.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to