diff --git a/transport/src/main/java/io/netty/channel/ChannelInitializer.java b/transport/src/main/java/io/netty/channel/ChannelInitializer.java index d6516e670f..0144a6c382 100644 --- a/transport/src/main/java/io/netty/channel/ChannelInitializer.java +++ b/transport/src/main/java/io/netty/channel/ChannelInitializer.java @@ -58,7 +58,7 @@ public abstract class ChannelInitializer extends ChannelState * @param ch the {@link Channel} which was registered. * @throws Exception is thrown if an error accours. In that case the {@link Channel} will be closed. */ - public abstract void initChannel(C ch) throws Exception; + protected abstract void initChannel(C ch) throws Exception; @SuppressWarnings("unchecked") @Override