chia7712 commented on code in PR #19847: URL: https://github.com/apache/kafka/pull/19847#discussion_r2114462113
########## metadata/src/main/java/org/apache/kafka/image/ClientQuotaImage.java: ########## @@ -45,7 +45,7 @@ public final class ClientQuotaImage { private final Map<String, Double> quotas; public ClientQuotaImage(Map<String, Double> quotas) { - this.quotas = quotas; + this.quotas = Collections.unmodifiableMap(quotas); Review Comment: the method `quotaMap` doesn't need to call `Collections.unmodifiableMap`, right? -- 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