Mark ChannelHandlerAdapter.exceptionCaught(...) as @deprecated. (#8826)
Motivation:
41e03adf24
marked ChannelHandler.exceptionCaught(...) as @deprecated but missed to also mark ChannelHandlerAdapter.exceptionCaught(...) as @deprecated. We should do so as most people extend the base classes and not implement the interfaces directly.
Modifications:
Mark ChannelHandlerAdapter.exceptionCaught(...) as @deprecated as well.
Result:
Mark method as @deprecated to warn users about its removal.
This commit is contained in:
parent
91d3920aa2
commit
ad922fa47e
@ -81,8 +81,11 @@ public abstract class ChannelHandlerAdapter implements ChannelHandler {
|
|||||||
* to the next {@link ChannelHandler} in the {@link ChannelPipeline}.
|
* to the next {@link ChannelHandler} in the {@link ChannelPipeline}.
|
||||||
*
|
*
|
||||||
* Sub-classes may override this method to change behavior.
|
* Sub-classes may override this method to change behavior.
|
||||||
|
*
|
||||||
|
* @deprecated is part of {@link ChannelInboundHandler}
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@Deprecated
|
||||||
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
|
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
|
||||||
ctx.fireExceptionCaught(cause);
|
ctx.fireExceptionCaught(cause);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user