chia7712 commented on code in PR #24093:
URL: https://github.com/apache/kafka/pull/24093#discussion_r4579014282


##########
clients/src/main/java/org/apache/kafka/common/security/authenticator/CredentialCache.java:
##########
@@ -16,53 +16,43 @@
  */
 package org.apache.kafka.common.security.authenticator;
 
+import org.apache.kafka.common.security.scram.ScramCredential;
+import org.apache.kafka.common.security.scram.internals.ScramMechanism;
+
+import java.util.Collection;
 import java.util.concurrent.ConcurrentHashMap;
 
 public class CredentialCache {
 
-    private final ConcurrentHashMap<String, Cache<?>> cacheMap = new 
ConcurrentHashMap<>();
+    private final ConcurrentHashMap<String, Cache> cacheMap = new 
ConcurrentHashMap<>();

Review Comment:
   This `cacheMap` won’t be updated after construction, so could we use an 
immutable map instead?



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

Reply via email to