From 328e9cdb578dc1aeef3e8bbab86345e8c7d90ac1 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Wed, 1 Feb 2017 10:04:42 -0500 Subject: [PATCH] Update to Spring Kafka 2.0.0 Revert assertJ to the Cairo version; an issue with 3.5.2 needs to be investigated. --- .../kafka/dsl/KafkaMessageDrivenChannelAdapterSpec.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spring-integration-kafka/src/main/java/org/springframework/integration/kafka/dsl/KafkaMessageDrivenChannelAdapterSpec.java b/spring-integration-kafka/src/main/java/org/springframework/integration/kafka/dsl/KafkaMessageDrivenChannelAdapterSpec.java index 92950845b5..326872913a 100644 --- a/spring-integration-kafka/src/main/java/org/springframework/integration/kafka/dsl/KafkaMessageDrivenChannelAdapterSpec.java +++ b/spring-integration-kafka/src/main/java/org/springframework/integration/kafka/dsl/KafkaMessageDrivenChannelAdapterSpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -53,6 +53,7 @@ import org.springframework.util.Assert; * @param the target {@link KafkaMessageDrivenChannelAdapterSpec} implementation type. * * @author Artem Bilan + * @author Gary Russell * * @since 3.0 */ @@ -170,7 +171,7 @@ public class KafkaMessageDrivenChannelAdapterSpec> implements ComponentsRegistration { - private KafkaMessageListenerContainerSpec spec; + private final KafkaMessageListenerContainerSpec spec; KafkaMessageDrivenChannelAdapterListenerContainerSpec(KafkaMessageListenerContainerSpec spec, KafkaMessageDrivenChannelAdapter.ListenerMode listenerMode) { @@ -186,7 +187,7 @@ public class KafkaMessageDrivenChannelAdapterSpec configureListenerContainer( Consumer> configurer) { - Assert.notNull(configurer); + Assert.notNull(configurer, "The 'configurer' cannot be null"); configurer.accept(this.spec); return _this(); }