From: kkolinko Date: Wed, 9 Feb 2011 09:35:16 +0000 (+0000) Subject: Followup to r1068549 - add annotations. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=57908935e5e1306e2b5113f7f523508e2eec8064;p=tomcat7.0 Followup to r1068549 - add annotations. I thought about moving ErrorHandler instance creation outside the retry loop, but actually that is not needed: looping happens only when asyncReply==false and ErrorHandler is created only when asyncReply==true. Thus it is created only once. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1068808 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/tribes/group/RpcChannel.java b/java/org/apache/catalina/tribes/group/RpcChannel.java index 30a42fb6a..c40aaba63 100644 --- a/java/org/apache/catalina/tribes/group/RpcChannel.java +++ b/java/org/apache/catalina/tribes/group/RpcChannel.java @@ -139,10 +139,11 @@ public class RpcChannel implements ChannelListener{ final Member fsender = sender; if (excallback!=null && asyncReply) { handler = new ErrorHandler() { + @Override public void handleError(ChannelException x, UniqueId id) { excallback.replyFailed(request, response, fsender, x); } - + @Override public void handleCompletion(UniqueId id) { excallback.replySucceeded(request, response, fsender); }