Deprecate ChannelOption.newInstance(...) (#8997)
Motivation: Deprecate ChannelOption.newInstance(...) as it is not used. Modifications: Deprecate ChannelOption.newInstance(...) as valueOf(...) should be used as a replacement. Result: Fixes https://github.com/netty/netty/issues/8983.
This commit is contained in:
parent
547a375737
commit
60d135f0c8
@ -65,7 +65,10 @@ public class ChannelOption<T> extends AbstractConstant<ChannelOption<T>> {
|
||||
/**
|
||||
* 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 <T> ChannelOption<T> newInstance(String name) {
|
||||
return (ChannelOption<T>) pool.newInstance(name);
|
||||
|
Loading…
Reference in New Issue
Block a user