Remove unnecessary code, fix a Findbugs warning
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 18 Feb 2011 20:39:48 +0000 (20:39 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 18 Feb 2011 20:39:48 +0000 (20:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1072136 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/LifecycleEvent.java

index e720d9d..8c4b7b9 100644 (file)
@@ -49,10 +49,8 @@ public final class LifecycleEvent extends EventObject {
     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 extends EventObject {
 
 
     /**
-     * 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 extends EventObject {
      */
     public Lifecycle getLifecycle() {
 
-        return (this.lifecycle);
+        return (Lifecycle) getSource();
 
     }