cmccabe commented on code in PR #12072:
URL: https://github.com/apache/kafka/pull/12072#discussion_r861399365
##########
clients/src/main/java/org/apache/kafka/common/requests/ApiVersionsResponse.java:
##########
@@ -271,4 +273,48 @@ public static ApiVersion toApiVersion(ApiKeys apiKey) {
.setMinVersion(apiKey.oldestVersion())
.setMaxVersion(apiKey.latestVersion());
}
+
+ public static ApiVersionsResponse apiVersionsResponse(
Review Comment:
Do we really need two constructors for this? It seems like initializing an
`ApiVersionsResponse` without any finalized features set is something we'd only
want to do in a test. And we can just have a convenience method in a test that
has far fewer parameters than this one (plus won't get called accidentally
somewhere else where we really do need finalized features set)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]