diff --git a/transport/src/main/java/io/netty/bootstrap/AbstractBootstrap.java b/transport/src/main/java/io/netty/bootstrap/AbstractBootstrap.java index e0bc7c32c3..16bce3b995 100644 --- a/transport/src/main/java/io/netty/bootstrap/AbstractBootstrap.java +++ b/transport/src/main/java/io/netty/bootstrap/AbstractBootstrap.java @@ -28,8 +28,8 @@ import io.netty.util.AttributeKey; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.SocketAddress; -import java.util.LinkedHashMap; import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; /** * {@link AbstractBootstrap} is a helper class that makes it easy to bootstrap a {@link Channel}. It support @@ -40,8 +40,8 @@ public abstract class AbstractBootstrap> { private EventLoopGroup group; private ChannelFactory factory; private SocketAddress localAddress; - private final Map, Object> options = new LinkedHashMap, Object>(); - private final Map, Object> attrs = new LinkedHashMap, Object>(); + private final Map, Object> options = new ConcurrentHashMap, Object>(); + private final Map, Object> attrs = new ConcurrentHashMap, Object>(); private ChannelHandler handler; /**