This is an automated email from the ASF dual-hosted git repository. jbertram pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
commit fc13a39c6fd130656396d433cbacdc4b0994101d Author: aslepykh <[email protected]> AuthorDate: Thu Feb 29 09:51:53 2024 +0300 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. --- .../apache/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();
