This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new 0d16f634d9f (chores) camel-kafka: simplify complex resume strategy error message 0d16f634d9f is described below commit 0d16f634d9f0aa8e25a72c3fe83718af6e366592 Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Fri Jan 6 16:13:17 2023 +0100 (chores) camel-kafka: simplify complex resume strategy error message --- .../camel/processor/resume/kafka/SingleNodeKafkaResumeStrategy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-kafka/src/main/java/org/apache/camel/processor/resume/kafka/SingleNodeKafkaResumeStrategy.java b/components/camel-kafka/src/main/java/org/apache/camel/processor/resume/kafka/SingleNodeKafkaResumeStrategy.java index 0130f72fda4..2f9113f2423 100644 --- a/components/camel-kafka/src/main/java/org/apache/camel/processor/resume/kafka/SingleNodeKafkaResumeStrategy.java +++ b/components/camel-kafka/src/main/java/org/apache/camel/processor/resume/kafka/SingleNodeKafkaResumeStrategy.java @@ -42,6 +42,7 @@ import org.apache.camel.resume.ResumeStrategyConfiguration; import org.apache.camel.resume.cache.ResumeCache; import org.apache.camel.spi.annotations.JdkService; import org.apache.camel.util.IOHelper; +import org.apache.camel.util.ObjectHelper; import org.apache.kafka.clients.consumer.Consumer; import org.apache.kafka.clients.consumer.ConsumerRebalanceListener; import org.apache.kafka.clients.consumer.ConsumerRecord; @@ -456,8 +457,7 @@ public class SingleNodeKafkaResumeStrategy implements KafkaResumeStrategy, Camel } else { throw new RuntimeCamelException( "Invalid resume strategy configuration of type " + - resumeStrategyConfiguration == null - ? "null" : resumeStrategyConfiguration.getClass().getName()); + ObjectHelper.className(resumeStrategyConfiguration)); } }