GH-9230 fix error in code snippet

Fixes: #9230

Some code was present in the code snippet that shouldn't be there.

(cherry picked from commit 3d66ea00d9)
This commit is contained in:
Kevin Van keer
2024-06-12 16:48:41 +02:00
committed by Spring Builds
parent ac29b2673e
commit 069fa9ffa0

View File

@@ -604,7 +604,7 @@ The xref:channel/implementations.adoc#channel-implementations-queuechannel[`Queu
----
@Bean
PollableChannel hazelcastQueueChannel(HazelcastInstance hazelcastInstance) {
return new QueueChannel(hazelcastInstance.Message<?>>getQueue("springIntegrationQueue"));
return new QueueChannel(hazelcastInstance.getQueue("springIntegrationQueue"));
}
----