GH-9230 fix error in code snippet

Fixes: #9230

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


**Auto-cherry-pick to `6.3.x` & `6.2.x`**
This commit is contained in:
Kevin Van keer
2024-06-12 16:48:41 +02:00
committed by GitHub
parent 5da6d7bfc7
commit 3d66ea00d9

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"));
}
----