GH-2967: Fix backport assert message

This commit is contained in:
Gary Russell
2019-06-19 17:10:32 -04:00
parent 46ae25d88b
commit 02564e61b3

View File

@@ -118,7 +118,7 @@ public class ScatterGatherHandler extends AbstractReplyProducingMessageHandler i
else {
Assert.isInstanceOf(ChannelInterceptorAware.class, this.gatherChannel,
() -> "An injected 'gatherChannel' '" + this.gatherChannel +
"' must be an 'InterceptableChannel' instance.");
"' must be an 'ChannelInterceptorAware' instance.");
((ChannelInterceptorAware) this.gatherChannel)
.addInterceptor(0,
new ChannelInterceptor() {