mirror of https://github.com/grpc/grpc-java.git
Mark ChannelHandler.exceptionCaught implementation deprecated to fix warning
This just propagates the deprecated annotation from ChannelHandler. Note that exceptionCaught is _not_ deprecated for ChannelInboundHandler and ChannelDuplexHandler.
This commit is contained in:
parent
a3c79e87ae
commit
7e3d0fe9cc
|
|
@ -102,6 +102,7 @@ public final class ProtocolNegotiators {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@Deprecated
|
||||||
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
|
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
|
||||||
// Should never happen.
|
// Should never happen.
|
||||||
ctx.fireExceptionCaught(cause);
|
ctx.fireExceptionCaught(cause);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue