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.
This commit is contained in:
aslepykh 2024-02-29 09:51:53 +03:00 committed by Justin Bertram
parent 97a9c690ae
commit fc13a39c6f
No known key found for this signature in database
GPG Key ID: F41830B875BB8633
1 changed files with 0 additions and 1 deletions

View File

@ -322,7 +322,6 @@ public class AMQPLargeMessage extends AMQPMessage implements LargeServerMessage
decoder.setBuffer(buffer); decoder.setBuffer(buffer);
try { try {
int constructorPos = buffer.position();
TypeConstructor<?> constructor = decoder.readConstructor(); TypeConstructor<?> constructor = decoder.readConstructor();
if (Header.class.equals(constructor.getTypeClass())) { if (Header.class.equals(constructor.getTypeClass())) {
header = (Header) constructor.readValue(); header = (Header) constructor.readValue();