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


##########
core/src/main/scala/kafka/server/ConfigHelper.scala:
##########
@@ -45,8 +45,18 @@ import scala.jdk.OptionConverters.RichOptional
 
 class ConfigHelper(metadataCache: MetadataCache, config: KafkaConfig, 
configRepository: ConfigRepository) extends Logging {
 
-  def allConfigs(config: AbstractConfig): mutable.Map[String, Any] = {
-    config.originals.asScala.filter(_._2 != null) ++ 
config.nonInternalValues.asScala
+  def allConfigs(config: AbstractConfig): java.util.Map[String, Object] = {

Review Comment:
   Could you please merge `allConfigs` into `createResponseConfig` to remove 
the temporary collection?



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