cmccabe commented on code in PR #12050:
URL: https://github.com/apache/kafka/pull/12050#discussion_r869639379
##########
clients/src/main/java/org/apache/kafka/clients/NodeApiVersions.java:
##########
@@ -233,4 +256,8 @@ public ApiVersion apiVersion(ApiKeys apiKey) {
public Map<ApiKeys, ApiVersion> allSupportedApiVersions() {
return supportedVersions;
}
+
+ public Map<String, SupportedVersionRange> supportedFeatures() {
+ return Collections.unmodifiableMap(supportedFeatures);
Review Comment:
It seems like `supportedFeatures` should be immutable and final in any case.
There is no use-case for mutating this after the object is constructed.
--
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]