Explicit byte[].toString(..) in debug message

This commit is contained in:
Thiago Kronig 2015-05-08 20:12:15 -03:00 committed by Clebert Suconic
parent d99991dd3a
commit b6093579bf
1 changed files with 3 additions and 1 deletions

View File

@ -2465,6 +2465,7 @@ public class QueueImpl implements Queue
acknowledge(tx, ref); acknowledge(tx, ref);
} }
@SuppressWarnings({"ArrayToString", "ArrayToStringConcatentation"})
private void moveBetweenSnFQueues(final SimpleString queueSuffix, private void moveBetweenSnFQueues(final SimpleString queueSuffix,
final Transaction tx, final Transaction tx,
final MessageReference ref) throws Exception final MessageReference ref) throws Exception
@ -2481,7 +2482,8 @@ public class QueueImpl implements Queue
if (propName.startsWith(MessageImpl.HDR_ROUTE_TO_IDS)) if (propName.startsWith(MessageImpl.HDR_ROUTE_TO_IDS))
{ {
oldRouteToIDs = (byte[]) copyMessage.removeProperty(propName); 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 // there should only be one of these properties so potentially save some loop iterations
break; break;