From 2d38a4453c360bcd72dbefe4ec04adcdb19f8ddd Mon Sep 17 00:00:00 2001 From: Guanpeng Xu Date: Sat, 22 Apr 2017 09:14:51 +0800 Subject: [PATCH] Remove the comment which is a bit misleading This fixes #6652. Rationale The invocation of initChannel of ChannelInitializer has been moved to as early as during handlerAdded is invoked in 26aa34853, whereas it was only invoked during channelRegistered is invoked before that. So the comment does not describe how handlers are added in normal circumstances anymore. However, the code is kept as-is since there might be unusual cases, and adding ServerBootstrapAcceptor via the event loop is always safe to enforce the correct order. --- .../src/main/java/io/netty/bootstrap/ServerBootstrap.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/transport/src/main/java/io/netty/bootstrap/ServerBootstrap.java b/transport/src/main/java/io/netty/bootstrap/ServerBootstrap.java index f9042af46c..34df324fc1 100644 --- a/transport/src/main/java/io/netty/bootstrap/ServerBootstrap.java +++ b/transport/src/main/java/io/netty/bootstrap/ServerBootstrap.java @@ -175,10 +175,6 @@ public class ServerBootstrap extends AbstractBootstrap