From: markt Date: Fri, 7 Aug 2009 12:35:06 +0000 (+0000) Subject: Remove unnecessary tests and casts X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c080310ff40517a00654de82a5f0fba154425439;p=tomcat7.0 Remove unnecessary tests and casts git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@801971 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/coyote/ajp/AjpAprProtocol.java b/java/org/apache/coyote/ajp/AjpAprProtocol.java index 187fad81b..7393a6f32 100644 --- a/java/org/apache/coyote/ajp/AjpAprProtocol.java +++ b/java/org/apache/coyote/ajp/AjpAprProtocol.java @@ -31,7 +31,6 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.apache.coyote.ActionCode; -import org.apache.coyote.ActionHook; import org.apache.coyote.Adapter; import org.apache.coyote.ProtocolHandler; import org.apache.coyote.RequestGroupInfo; @@ -378,9 +377,7 @@ public class AjpAprProtocol processor = createProcessor(); } - if (processor instanceof ActionHook) { - ((ActionHook) processor).action(ActionCode.ACTION_START, null); - } + processor.action(ActionCode.ACTION_START, null); if (processor.process(socket)) { return SocketState.OPEN; @@ -409,9 +406,7 @@ public class AjpAprProtocol AjpAprProtocol.log.error (sm.getString("ajpprotocol.proto.error"), e); } finally { - if (processor instanceof ActionHook) { - ((ActionHook) processor).action(ActionCode.ACTION_STOP, null); - } + processor.action(ActionCode.ACTION_STOP, null); recycledProcessors.offer(processor); } return SocketState.CLOSED;