gemmellr commented on code in PR #5477:
URL: https://github.com/apache/activemq-artemis/pull/5477#discussion_r1934320680


##########
artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/protocol/EmbedMessageUtil.java:
##########
@@ -98,8 +98,8 @@ private static Message extractRegularMessage(ICoreMessage 
message, StorageManage
    private static Message readEncoded(ICoreMessage message, StorageManager 
storageManager, ActiveMQBuffer buffer) {
       try {
          Message returnMessage = MessagePersister.getInstance().decode(buffer, 
null, null, storageManager);
-         if (returnMessage instanceof LargeServerMessage) {
-            
((LargeServerMessage)returnMessage).setStorageManager(storageManager);
+         if (returnMessage instanceof LargeServerMessage serverMessage) {
+            serverMessage.setStorageManager(storageManager);

Review Comment:
   ```suggestion
            if (returnMessage instanceof LargeServerMessage largeServerMessage) 
{
               largeServerMessage.setStorageManager(storageManager);
   ```



-- 
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: gitbox-unsubscr...@activemq.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org
For additional commands, e-mail: gitbox-h...@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact


Reply via email to