Skip to content

Commit 96fa456

Browse files
Eliminate two warnings
1 parent 60c2de4 commit 96fa456

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/com/rabbitmq/client/impl/ChannelN.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ private void releaseChannel() {
393393
}
394394

395395
protected void processDelivery(Command command, Basic.Deliver method) {
396-
Basic.Deliver m = (Basic.Deliver) method;
396+
Basic.Deliver m = method;
397397

398398
Consumer callback = _consumers.get(m.getConsumerTag());
399399
if (callback == null) {
@@ -1059,8 +1059,7 @@ public String transformReply(AMQCommand replyCommand) {
10591059
}
10601060
};
10611061

1062-
rpc((Method)
1063-
new Basic.Consume.Builder()
1062+
rpc(new Basic.Consume.Builder()
10641063
.queue(queue)
10651064
.consumerTag(consumerTag)
10661065
.noLocal(noLocal)

0 commit comments

Comments
 (0)