From 7bfbce9a54053be1643a805528d9972c4f0ba5b3 Mon Sep 17 00:00:00 2001 From: Dejan Bosanac Date: Thu, 29 May 2014 16:40:49 +0200 Subject: [PATCH] minor cleanup --- .../apache/activemq/transport/amqp/ActiveMQJMSVendor.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/ActiveMQJMSVendor.java b/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/ActiveMQJMSVendor.java index 200b6c42ee..59c29e3261 100644 --- a/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/ActiveMQJMSVendor.java +++ b/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/ActiveMQJMSVendor.java @@ -88,16 +88,16 @@ public class ActiveMQJMSVendor extends JMSVendor { @Override public T createDestination(String name, Class kind) { String destinationName = name.substring(name.lastIndexOf("://") + 3); - if( kind == Queue.class ) { + if (kind == Queue.class) { return kind.cast(new ActiveMQQueue(destinationName)); } - if( kind == Topic.class ) { + if (kind == Topic.class) { return kind.cast(new ActiveMQTopic(destinationName)); } - if( kind == TemporaryQueue.class ) { + if (kind == TemporaryQueue.class) { return kind.cast(new ActiveMQTempQueue(destinationName)); } - if( kind == TemporaryTopic.class ) { + if (kind == TemporaryTopic.class) { return kind.cast(new ActiveMQTempTopic(destinationName)); } return kind.cast(ActiveMQDestination.createDestination(name, ActiveMQDestination.QUEUE_TYPE));