gemmellr commented on code in PR #5477:
URL: https://github.com/apache/activemq-artemis/pull/5477#discussion_r1934321248
##########
artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/protocol/MessagePersister.java:
##########
@@ -119,8 +119,8 @@ public Message decode(ActiveMQBuffer buffer, Message
record, CoreMessageObjectPo
throw new NullPointerException("couldn't find factory for type=" +
protocol);
}
Message message = persister.decode(buffer, record, pools);
- if (message instanceof LargeServerMessage) {
- ((LargeServerMessage) message).setStorageManager(storageManager);
+ if (message instanceof LargeServerMessage serverMessage) {
+ serverMessage.setStorageManager(storageManager);
Review Comment:
Similarly
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact