From 2a3b67d921720a2105595379c11dcbc6f6f3b0c6 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Thu, 3 May 2018 13:07:09 -0400 Subject: [PATCH] ARTEMIS-1801 Fixing checkstyle after NullCheck fix --- .../activemq/artemis/api/core/ActiveMQExceptionType.java | 4 +++- .../apache/activemq/artemis/core/server/impl/QueueImpl.java | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) 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 *