rabbitmq/rabbitmq-tutorials

Send.java is out of date?

bsqi1994 opened this issue · 1 comments

When I copy this code.There appear something wrong.
Channel channel = connection.createChannel()) {
This line on IDEA :

Required type:
AutoCloseable
Provided:
Channel

I don't know if this api have changed but this code didn't update timely?

Channels in modern versions do implement AutoClosable. You may be using an older version of the client.