Skip to content

Commit

Permalink
Adjust use of Deprecated Netty API (#42613)
Browse files Browse the repository at this point in the history
* With the recent upgrade to Netty 4.1.36 this method became deprecated and I made the advised change to fix the deprecation
  • Loading branch information
original-brownbear authored May 28, 2019
1 parent 0f5f888 commit aaf0ab4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerAdapter;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelOption;
import io.netty.channel.FixedRecvByteBufAllocator;
Expand Down Expand Up @@ -351,7 +351,7 @@ public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws E
}

@ChannelHandler.Sharable
private static class ServerChannelExceptionHandler extends ChannelHandlerAdapter {
private static class ServerChannelExceptionHandler extends ChannelInboundHandlerAdapter {

private final Netty4HttpServerTransport transport;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerAdapter;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelOption;
import io.netty.channel.FixedRecvByteBufAllocator;
Expand Down Expand Up @@ -315,7 +315,7 @@ private void addClosedExceptionLogger(Channel channel) {
}

@ChannelHandler.Sharable
private class ServerChannelExceptionHandler extends ChannelHandlerAdapter {
private class ServerChannelExceptionHandler extends ChannelInboundHandlerAdapter {

@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
Expand Down

0 comments on commit aaf0ab4

Please sign in to comment.