diff --git a/artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/ActiveMQExceptionType.java b/artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/ActiveMQExceptionType.java index 8b083e6bdc..9120d79618 100644 --- a/artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/ActiveMQExceptionType.java +++ b/artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/ActiveMQExceptionType.java @@ -246,7 +246,9 @@ public enum ActiveMQExceptionType { }, NULL_REF(218) { @Override - public ActiveMQException createException(String msg) { return new ActiveMQNullRefException(msg); } + public ActiveMQException createException(String msg) { + return new ActiveMQNullRefException(msg); + } }; private static final Map TYPE_MAP; diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java index 69f73f7848..dc77aadddc 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java @@ -99,8 +99,6 @@ import org.apache.activemq.artemis.utils.critical.CriticalComponentImpl; import org.apache.activemq.artemis.utils.critical.EmptyCriticalAnalyzer; import org.jboss.logging.Logger; -import static org.apache.activemq.artemis.api.core.ActiveMQExceptionType.NULL_REF; - /** * Implementation of a Queue *