From 28c7d95367da75f09e8595c375f151841afd9519 Mon Sep 17 00:00:00 2001 From: Sebastian Thomschke Date: Thu, 18 Mar 2021 19:18:30 +0100 Subject: [PATCH] NO-JIRA Remove unnecessary cast from byte[] to byte[] --- .../activemq/artemis/core/postoffice/impl/BindingsImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/BindingsImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/BindingsImpl.java index 54266e15fed..5c13c6cf681 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/BindingsImpl.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/BindingsImpl.java @@ -300,7 +300,7 @@ private void route(final Message message, /* This is a special treatment for scaled-down messages involving SnF queues. * See org.apache.activemq.artemis.core.server.impl.ScaleDownHandler.scaleDownMessages() for the logic that sends messages with this property */ - byte[] ids = (byte[]) message.removeExtraBytesProperty(Message.HDR_SCALEDOWN_TO_IDS); + byte[] ids = message.removeExtraBytesProperty(Message.HDR_SCALEDOWN_TO_IDS); if (ids != null) { ByteBuffer buffer = ByteBuffer.wrap(ids);