jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1031181 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/StateChangeDispatcher.java
Date Thu, 04 Nov 2010 19:41:11 GMT
Author: jukka
Date: Thu Nov  4 19:41:11 2010
New Revision: 1031181

URL: http://svn.apache.org/viewvc?rev=1031181&view=rev
Log:
JCR-2089: Use java.util.concurrent

Switch to the java.util.concurrent version of CopyOnWriteArrayList in StateChangeDispatcher

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/StateChangeDispatcher.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/StateChangeDispatcher.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/StateChangeDispatcher.java?rev=1031181&r1=1031180&r2=1031181&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/StateChangeDispatcher.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/StateChangeDispatcher.java
Thu Nov  4 19:41:11 2010
@@ -16,13 +16,13 @@
  */
 package org.apache.jackrabbit.core.state;
 
-import EDU.oswego.cs.dl.util.concurrent.CopyOnWriteArrayList;
 import org.apache.jackrabbit.core.id.NodeId;
 import org.apache.jackrabbit.spi.Name;
 
 import java.lang.ref.Reference;
 import java.lang.ref.WeakReference;
 import java.util.Collection;
+import java.util.concurrent.CopyOnWriteArrayList;
 
 /**
  * Component that holds references to listeners interested in changes to item
@@ -34,13 +34,15 @@ public class StateChangeDispatcher {
      * Simple item state listeners.
      * A copy on write array list is used so that no synchronization is required.
      */
-    private final Collection<WeakReference<ItemStateListener>> listeners = new
CopyOnWriteArrayList();
+    private final Collection<WeakReference<ItemStateListener>> listeners =
+        new CopyOnWriteArrayList<WeakReference<ItemStateListener>>();
 
     /**
      * Node state listeners
      * A copy on write array list is used so that no synchronization is required.
      */
-    private final transient Collection<WeakReference<NodeStateListener>> nsListeners
= new CopyOnWriteArrayList();
+    private final Collection<WeakReference<NodeStateListener>> nsListeners =
+        new CopyOnWriteArrayList<WeakReference<NodeStateListener>>();
 
     /**
      * Add an <code>ItemStateListener</code>.



Mime
View raw message