orpiske commented on code in PR #9339: URL: https://github.com/apache/camel/pull/9339#discussion_r1104784439
########## 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: This one is not a public interface (the method has package visibility, so it should, indeed use an assert). -- 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