RivenSun2 commented on code in PR #12010: URL: https://github.com/apache/kafka/pull/12010#discussion_r852484756
########## clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerConfig.java: ########## @@ -486,10 +488,14 @@ public class ConsumerConfig extends AbstractConfig { CommonClientConfigs.METRIC_REPORTER_CLASSES_DOC) .define(KEY_DESERIALIZER_CLASS_CONFIG, Type.CLASS, + ConfigDef.NO_DEFAULT_VALUE, + new ConfigDef.NonNullValidator(), Review Comment: As described in JIRA, expect to throw `ConfigException` instead of `NullPointerException` when user passes in `null` ########## clients/src/main/java/org/apache/kafka/clients/admin/AdminClientConfig.java: ########## @@ -212,6 +213,7 @@ public class AdminClientConfig extends AbstractConfig { .define(SECURITY_PROTOCOL_CONFIG, Type.STRING, DEFAULT_SECURITY_PROTOCOL, + in(SecurityProtocol.names().toArray(new String[0])), Review Comment: sure -- 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