From: markt Date: Fri, 18 Feb 2011 20:39:48 +0000 (+0000) Subject: Remove unnecessary code, fix a Findbugs warning X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d9cf0eeee9642200bad4fd452684fd9a7108b10a;p=tomcat7.0 Remove unnecessary code, fix a Findbugs warning git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1072136 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/LifecycleEvent.java b/java/org/apache/catalina/LifecycleEvent.java index e720d9d84..8c4b7b9fc 100644 --- a/java/org/apache/catalina/LifecycleEvent.java +++ b/java/org/apache/catalina/LifecycleEvent.java @@ -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(); }