From fc13a39c6fd130656396d433cbacdc4b0994101d Mon Sep 17 00:00:00 2001 From: aslepykh <145323274+aslepykh@users.noreply.github.com> Date: Thu, 29 Feb 2024 09:51:53 +0300 Subject: [PATCH] ARTEMIS-4695 DLS_DEAD_LOCAL_STORE in AMQPLargeMessage.java The local variable constructorPos is initialized with the value of buffer.position() in line 330, but the variable itself is not used anywhere else, which may indicate an error. --- .../activemq/artemis/protocol/amqp/broker/AMQPLargeMessage.java | 1 - 1 file changed, 1 deletion(-) diff --git a/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/AMQPLargeMessage.java b/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/AMQPLargeMessage.java index d3ebbab4fd..d790505000 100644 --- a/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/AMQPLargeMessage.java +++ b/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/AMQPLargeMessage.java @@ -322,7 +322,6 @@ public class AMQPLargeMessage extends AMQPMessage implements LargeServerMessage decoder.setBuffer(buffer); try { - int constructorPos = buffer.position(); TypeConstructor constructor = decoder.readConstructor(); if (Header.class.equals(constructor.getTypeClass())) { header = (Header) constructor.readValue();