Skip to content

Commit 2fffd7a

Browse files
author
Matthias Radestock
committed
merge bug19250 into default
2 parents e3dcfb0 + 6908989 commit 2fffd7a

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/com/rabbitmq/client/Channel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ Queue.DeclareOk queueDeclare(int ticket, String queue, boolean passive, boolean
320320
Queue.BindOk queueBind(int ticket, String queue, String exchange, String routingKey, Map<String, Object> arguments) throws IOException;
321321

322322
/**
323-
* Uninds a queue from an exchange, with no extra arguments.
323+
* Unbinds a queue from an exchange, with no extra arguments.
324324
* @see com.rabbitmq.client.AMQP.Queue.Unbind
325325
* @see com.rabbitmq.client.AMQP.Queue.UnbindOk
326326
* @param ticket an access ticket for the appropriate realm

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -548,28 +548,28 @@ public Queue.BindOk queueBind(int ticket, String queue, String exchange,
548548
}
549549

550550
/**
551-
* Public API - Unbind a queue from an exchange.
552-
* @see com.rabbitmq.client.AMQP.Queue.Unbind
553-
* @see com.rabbitmq.client.AMQP.Queue.UnbindOk
551+
* Public API - Bind a queue to an exchange, with no extra arguments.
552+
* @see com.rabbitmq.client.AMQP.Queue.Bind
553+
* @see com.rabbitmq.client.AMQP.Queue.BindOk
554554
*/
555-
public Queue.UnbindOk queueUnbind(int ticket, String queue, String exchange,
556-
String routingKey, Map<String, Object> arguments)
555+
public Queue.BindOk queueBind(int ticket, String queue, String exchange, String routingKey)
557556
throws IOException
558557
{
559-
return (Queue.UnbindOk)
560-
exnWrappingRpc(new Queue.Unbind(ticket, queue, exchange, routingKey,
561-
arguments)).getMethod();
558+
return queueBind(ticket, queue, exchange, routingKey, null);
562559
}
563560

564561
/**
565-
* Public API - Bind a queue to an exchange, with no extra arguments.
566-
* @see com.rabbitmq.client.AMQP.Queue.Bind
567-
* @see com.rabbitmq.client.AMQP.Queue.BindOk
562+
* Public API - Unbind a queue from an exchange.
563+
* @see com.rabbitmq.client.AMQP.Queue.Unbind
564+
* @see com.rabbitmq.client.AMQP.Queue.UnbindOk
568565
*/
569-
public Queue.BindOk queueBind(int ticket, String queue, String exchange, String routingKey)
566+
public Queue.UnbindOk queueUnbind(int ticket, String queue, String exchange, String routingKey,
567+
Map<String, Object> arguments)
570568
throws IOException
571569
{
572-
return queueBind(ticket, queue, exchange, routingKey, null);
570+
return (Queue.UnbindOk)
571+
exnWrappingRpc(new Queue.Unbind(ticket, queue, exchange, routingKey,
572+
arguments)).getMethod();
573573
}
574574

575575
/**

0 commit comments

Comments
 (0)