Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D068718E61 for ; Thu, 21 May 2015 23:45:33 +0000 (UTC) Received: (qmail 94001 invoked by uid 500); 21 May 2015 23:45:33 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 93929 invoked by uid 500); 21 May 2015 23:45:33 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 93754 invoked by uid 99); 21 May 2015 23:45:33 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2015 23:45:33 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 76783E51D0; Thu, 21 May 2015 23:45:33 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: clebertsuconic@apache.org To: commits@activemq.apache.org Date: Thu, 21 May 2015 23:45:40 -0000 Message-Id: <8e211c8733b442d39782ffa15a300d4a@git.apache.org> In-Reply-To: <5d2a9198c9734c5eb9b5786199140f42@git.apache.org> References: <5d2a9198c9734c5eb9b5786199140f42@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [08/10] activemq-artemis git commit: Explicit byte[].toString(..) in debug message Explicit byte[].toString(..) in debug message Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/b6093579 Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/b6093579 Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/b6093579 Branch: refs/heads/master Commit: b6093579bfd06810a510e63fed3c27a80112184b Parents: d99991d Author: Thiago Kronig Authored: Fri May 8 20:12:15 2015 -0300 Committer: Clebert Suconic Committed: Thu May 21 19:45:01 2015 -0400 ---------------------------------------------------------------------- .../org/apache/activemq/artemis/core/server/impl/QueueImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b6093579/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java ---------------------------------------------------------------------- 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 226cf76..6e57af5 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 @@ -2465,6 +2465,7 @@ public class QueueImpl implements Queue acknowledge(tx, ref); } + @SuppressWarnings({"ArrayToString", "ArrayToStringConcatentation"}) private void moveBetweenSnFQueues(final SimpleString queueSuffix, final Transaction tx, final MessageReference ref) throws Exception @@ -2481,7 +2482,8 @@ public class QueueImpl implements Queue if (propName.startsWith(MessageImpl.HDR_ROUTE_TO_IDS)) { oldRouteToIDs = (byte[]) copyMessage.removeProperty(propName); - ActiveMQServerLogger.LOGGER.debug("Removed property from message: " + propName + " = " + oldRouteToIDs + " (" + ByteBuffer.wrap(oldRouteToIDs).getLong() + ")"); + final String hashcodeToString = oldRouteToIDs.toString(); // don't use Arrays.toString(..) here + ActiveMQServerLogger.LOGGER.debug("Removed property from message: " + propName + " = " + hashcodeToString + " (" + ByteBuffer.wrap(oldRouteToIDs).getLong() + ")"); // there should only be one of these properties so potentially save some loop iterations break;