m1a2st commented on code in PR #15840:
URL: https://github.com/apache/kafka/pull/15840#discussion_r1615996251


##########
core/src/main/scala/kafka/admin/ConfigCommand.scala:
##########
@@ -244,8 +248,11 @@ object ConfigCommand extends Logging {
           " to override the default encoding parameters. Password encoder 
configs will not be persisted" +
           " in ZooKeeper."
       )
-
-      val passwordEncoder = 
createPasswordEncoder(passwordEncoderConfigs.asScala)
+      val passwordConfigsMap = new java.util.HashMap[String, String]

Review Comment:
   I want use 
   `passwordEncoderConfigs.entrySet()
     .stream()
     .collect(Collectors.toMap(_.getKey.toString, _.getValue.toString))`
     but Scala can't compile, so I use foreach to generate Java `Map<String, 
String>`



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

Reply via email to