You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2007/02/22 13:34:36 UTC

svn commit: r510482 - /tomcat/tc6.0.x/trunk/java/org/apache/catalina/util/LifecycleSupport.java

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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org