@@ -502,28 +502,29 @@ public Queue.BindOk queueBind(String queue, String exchange,
502502 }
503503
504504 /**
505- * Public API - Unbind a queue from an exchange.
506- * @see com.rabbitmq.client.AMQP.Queue.Unbind
507- * @see com.rabbitmq.client.AMQP.Queue.UnbindOk
505+ * Public API - Bind a queue to an exchange, with no extra arguments .
506+ * @see com.rabbitmq.client.AMQP.Queue.Bind
507+ * @see com.rabbitmq.client.AMQP.Queue.BindOk
508508 */
509- public Queue .UnbindOk queueUnbind (String queue , String exchange ,
510- String routingKey , Map <String , Object > arguments )
509+ public Queue .BindOk queueBind (String queue , String exchange , String routingKey )
511510 throws IOException
512511 {
513- return (Queue .UnbindOk )
514- exnWrappingRpc (new Queue .Unbind (TICKET , queue , exchange , routingKey ,
515- arguments )).getMethod ();
512+
513+ return queueBind (queue , exchange , routingKey , null );
516514 }
517515
518516 /**
519- * Public API - Bind a queue to an exchange, with no extra arguments .
520- * @see com.rabbitmq.client.AMQP.Queue.Bind
521- * @see com.rabbitmq.client.AMQP.Queue.BindOk
517+ * Public API - Unbind a queue from an exchange.
518+ * @see com.rabbitmq.client.AMQP.Queue.Unbind
519+ * @see com.rabbitmq.client.AMQP.Queue.UnbindOk
522520 */
523- public Queue .BindOk queueBind (String queue , String exchange , String routingKey )
521+ public Queue .UnbindOk queueUnbind (String queue , String exchange , String routingKey ,
522+ Map <String , Object > arguments )
524523 throws IOException
525524 {
526- return queueBind (queue , exchange , routingKey , null );
525+ return (Queue .UnbindOk )
526+ exnWrappingRpc (new Queue .Unbind (TICKET , queue , exchange , routingKey ,
527+ arguments )).getMethod ();
527528 }
528529
529530 /**
0 commit comments