Add proper toString() implementation for internal ChannelFactory impls

This commit is contained in:
Trustin Lee 2012-11-26 17:15:14 +09:00
parent 918666481e
commit c661c344ed

View File

@ -309,7 +309,12 @@ public class ServerBootstrap extends AbstractBootstrap<ServerBootstrap> {
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";
}
}
}