diff --git a/transport/src/main/java/io/netty/channel/ChannelOption.java b/transport/src/main/java/io/netty/channel/ChannelOption.java index 97bf31545c..274d8f0d31 100644 --- a/transport/src/main/java/io/netty/channel/ChannelOption.java +++ b/transport/src/main/java/io/netty/channel/ChannelOption.java @@ -65,7 +65,10 @@ public class ChannelOption extends AbstractConstant> { /** * Creates a new {@link ChannelOption} for the given {@code name} or fail with an * {@link IllegalArgumentException} if a {@link ChannelOption} for the given {@code name} exists. + * + * @deprecated use {@link #valueOf(String)}. */ + @Deprecated @SuppressWarnings("unchecked") public static ChannelOption newInstance(String name) { return (ChannelOption) pool.newInstance(name);