Author: remm
Date: Thu Feb 22 04:34:36 2007
New Revision: 510482

URL: http://svn.apache.org/viewvc?view=rev&rev=510482
Log:
- Remove sync + clone to be consistent.

Modified:
    tomcat/tc6.0.x/trunk/java/org/apache/catalina/util/LifecycleSupport.java

Modified: 
tomcat/tc6.0.x/trunk/java/org/apache/catalina/util/LifecycleSupport.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/util/LifecycleSupport.java?view=diff&rev=510482&r1=510481&r2=510482
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/util/LifecycleSupport.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/util/LifecycleSupport.java 
Thu Feb 22 04:34:36 2007
@@ -112,10 +112,7 @@
     public void fireLifecycleEvent(String type, Object data) {
 
         LifecycleEvent event = new LifecycleEvent(lifecycle, type, data);
-        LifecycleListener interested[] = null;
-        synchronized (listeners) {
-            interested = (LifecycleListener[]) listeners.clone();
-        }
+        LifecycleListener interested[] = listeners;
         for (int i = 0; i < interested.length; i++)
             interested[i].lifecycleEvent(event);
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to