tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1072136 - /tomcat/trunk/java/org/apache/catalina/LifecycleEvent.java
Date Fri, 18 Feb 2011 20:39:49 GMT
Author: markt
Date: Fri Feb 18 20:39:48 2011
New Revision: 1072136

URL: http://svn.apache.org/viewvc?rev=1072136&view=rev
Log:
Remove unnecessary code, fix a Findbugs warning

Modified:
    tomcat/trunk/java/org/apache/catalina/LifecycleEvent.java

Modified: tomcat/trunk/java/org/apache/catalina/LifecycleEvent.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/LifecycleEvent.java?rev=1072136&r1=1072135&r2=1072136&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/LifecycleEvent.java (original)
+++ tomcat/trunk/java/org/apache/catalina/LifecycleEvent.java Fri Feb 18 20:39:48 2011
@@ -49,10 +49,8 @@ public final class LifecycleEvent extend
     public LifecycleEvent(Lifecycle lifecycle, String type, Object data) {
 
         super(lifecycle);
-        this.lifecycle = lifecycle;
         this.type = type;
         this.data = data;
-
     }
 
 
@@ -66,12 +64,6 @@ public final class LifecycleEvent extend
 
 
     /**
-     * The Lifecycle on which this event occurred.
-     */
-    private Lifecycle lifecycle = null;
-
-
-    /**
      * The event type this instance represents.
      */
     private String type = null;
@@ -95,7 +87,7 @@ public final class LifecycleEvent extend
      */
     public Lifecycle getLifecycle() {
 
-        return (this.lifecycle);
+        return (Lifecycle) getSource();
 
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message