gemmellr commented on code in PR #5477: URL: https://github.com/apache/activemq-artemis/pull/5477#discussion_r1934284140
########## artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/connect/mirror/AMQPMirrorControllerSource.java: ########## @@ -510,8 +510,8 @@ private static void setProtocolData(MessageReference ref, String brokerID, long } private static Properties getProperties(Message message) { - if (message instanceof AMQPMessage) { - return AMQPMessageBrokerAccessor.getCurrentProperties((AMQPMessage)message); + if (message instanceof AMQPMessage pMessage) { + return AMQPMessageBrokerAccessor.getCurrentProperties(pMessage); Review Comment: ```suggestion if (message instanceof AMQPMessage amqpMessage) { return AMQPMessageBrokerAccessor.getCurrentProperties(amqpMessage); ``` -- 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