Author: nickarls
Date: 2008-11-26 09:12:53 -0500 (Wed, 26 Nov 2008)
New Revision: 365
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/TransactionListener.java
Log:
minor: ArrayList -> CopyOnWriteArrayList in TransactionListener
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/TransactionListener.java
===================================================================
---
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/TransactionListener.java 2008-11-26
12:47:44 UTC (rev 364)
+++
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/TransactionListener.java 2008-11-26
14:12:53 UTC (rev 365)
@@ -1,8 +1,8 @@
package org.jboss.webbeans.transaction;
import java.rmi.RemoteException;
-import java.util.ArrayList;
import java.util.List;
+import java.util.concurrent.CopyOnWriteArrayList;
import javax.ejb.EJBException;
import javax.ejb.Remove;
@@ -20,7 +20,7 @@
public class TransactionListener implements LocalTransactionListener,
SessionSynchronization
{
- private List<Synchronization> synchronizations = new
ArrayList<Synchronization>();
+ private List<Synchronization> synchronizations = new
CopyOnWriteArrayList<Synchronization>();
public void afterBegin() throws EJBException, RemoteException
{