clebertsuconic commented on a change in pull request #2656: ARTEMIS-2328 
Routing after empty addresses could lead to invalid mess…
URL: https://github.com/apache/activemq-artemis/pull/2656#discussion_r280006720
 
 

 ##########
 File path: 
artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/PostOfficeImpl.java
 ##########
 @@ -907,8 +907,7 @@ public RoutingStatus route(final Message message,
       AddressInfo addressInfo = addressManager.getAddressInfo(address);
 
       if (bindingMove != null) {
-         context.clear();
-         context.setReusable(false);
+         context.clear().setReusable(false);
 
 Review comment:
   I reverted these two lines. no big deal.
   
   will mark this section as resolved.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to