You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by GitBox <gi...@apache.org> on 2021/10/13 14:40:20 UTC

[GitHub] [activemq] jbonofre commented on a change in pull request #720: [AMQ-8400] Add synchronization handling around synchronizations to pr…

jbonofre commented on a change in pull request #720:
URL: https://github.com/apache/activemq/pull/720#discussion_r728136488



##########
File path: activemq-broker/src/main/java/org/apache/activemq/transaction/Transaction.java
##########
@@ -226,4 +232,10 @@ public boolean isRollbackOnly() {
         return rollackOnlyCause != null;
     }
 
+    protected ArrayList<Synchronization> getSynchronizationsCopy() {

Review comment:
       Maybe it's easier/smaller to use `Collections.synchronizedList(new ArrayList<Object>());` instead of a method wrapping with sync ?




-- 
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-unsubscribe@activemq.apache.org

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