From 53b84624f3a8a0a50a3a9d1389efaaf541bf925e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 21 Sep 2016 00:06:31 +0300 Subject: [PATCH] Rename misleading divertBindingNotExists to divertBindingAlreadyExists --- .../activemq/artemis/core/server/ActiveMQServerLogger.java | 2 +- .../activemq/artemis/core/server/impl/ActiveMQServerImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/ActiveMQServerLogger.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/ActiveMQServerLogger.java index 4ae54424c5..a8dc14e9aa 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/ActiveMQServerLogger.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/ActiveMQServerLogger.java @@ -360,7 +360,7 @@ public interface ActiveMQServerLogger extends BasicLogger { @LogMessage(level = Logger.Level.WARN) @Message(id = 222006, value = "Binding already exists with name {0}, divert will not be deployed", format = Message.Format.MESSAGE_FORMAT) - void divertBindingNotExists(SimpleString bindingName); + void divertBindingAlreadyExists(SimpleString bindingName); @LogMessage(level = Logger.Level.WARN) @Message(id = 222007, value = "Security risk! Apache ActiveMQ Artemis is running with the default cluster admin user and default password. Please see the cluster chapter in the ActiveMQ Artemis User Guide for instructions on how to change this.", format = Message.Format.MESSAGE_FORMAT) diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java index 1f28754f36..7f67abc94e 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java @@ -1715,7 +1715,7 @@ public class ActiveMQServerImpl implements ActiveMQServer { SimpleString sName = new SimpleString(config.getName()); if (postOffice.getBinding(sName) != null) { - ActiveMQServerLogger.LOGGER.divertBindingNotExists(sName); + ActiveMQServerLogger.LOGGER.divertBindingAlreadyExists(sName); return; }