From c080310ff40517a00654de82a5f0fba154425439 Mon Sep 17 00:00:00 2001 From: markt Date: Fri, 7 Aug 2009 12:35:06 +0000 Subject: [PATCH] Remove unnecessary tests and casts git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@801971 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/coyote/ajp/AjpAprProtocol.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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; -- 2.11.0