FrankYang0529 commented on code in PR #24093:
URL: https://github.com/apache/kafka/pull/24093#discussion_r4583371342
##########
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:
Done. `cacheMap` is now an unmodifiable map built once in the constructor.
--
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]