bvahdat commented on code in PR #9339: URL: https://github.com/apache/camel/pull/9339#discussion_r1104673488
########## components/camel-kafka/src/main/java/org/apache/camel/processor/resume/kafka/KafkaResumeStrategyConfiguration.java: ########## @@ -37,29 +38,23 @@ public Properties getProducerProperties() { } void setProducerProperties(Properties producerProperties) { - assert producerProperties != null; - - this.producerProperties = producerProperties; + this.producerProperties = ObjectHelper.notNull(producerProperties, "producerProperties"); Review Comment: My same reasoning as very top :point_up_2:. ########## components/camel-kafka/src/main/java/org/apache/camel/processor/resume/kafka/KafkaResumeStrategyConfiguration.java: ########## @@ -37,29 +38,23 @@ public Properties getProducerProperties() { } void setProducerProperties(Properties producerProperties) { - assert producerProperties != null; - - this.producerProperties = producerProperties; + this.producerProperties = ObjectHelper.notNull(producerProperties, "producerProperties"); } public Properties getConsumerProperties() { return consumerProperties; } void setConsumerProperties(Properties consumerProperties) { - assert consumerProperties != null; - - this.consumerProperties = consumerProperties; Review Comment: My same reasoning as very top :point_up_2:. -- 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: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org