diff --git a/transport/src/main/java/io/netty/bootstrap/ServerBootstrap.java b/transport/src/main/java/io/netty/bootstrap/ServerBootstrap.java index 551d2983c6..84e5d4a7e2 100644 --- a/transport/src/main/java/io/netty/bootstrap/ServerBootstrap.java +++ b/transport/src/main/java/io/netty/bootstrap/ServerBootstrap.java @@ -309,7 +309,12 @@ public class ServerBootstrap extends AbstractBootstrap { private final class AioServerSocketChannelFactory implements ChannelFactory { @Override public Channel newChannel() { - return new AioServerSocketChannel((AioEventLoopGroup) group(), (AioEventLoopGroup) childGroup); + return new AioServerSocketChannel((AioEventLoopGroup) group(), (AioEventLoopGroup) childGroup); + } + + @Override + public String toString() { + return AioServerSocketChannel.class.getSimpleName() + ".class"; } } }