@@ -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