Suppress unchecked cast warnings for config options.
This commit is contained in:
parent
cd8e2576b4
commit
3cce40bd79
@ -46,6 +46,7 @@ final class AioServerSocketChannelConfig extends DefaultChannelConfig
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public <T> T getOption(ChannelOption<T> option) {
|
public <T> T getOption(ChannelOption<T> option) {
|
||||||
if (option == SO_RCVBUF) {
|
if (option == SO_RCVBUF) {
|
||||||
return (T) Integer.valueOf(getReceiveBufferSize());
|
return (T) Integer.valueOf(getReceiveBufferSize());
|
||||||
|
@ -57,6 +57,7 @@ final class AioSocketChannelConfig extends DefaultChannelConfig
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public <T> T getOption(ChannelOption<T> option) {
|
public <T> T getOption(ChannelOption<T> option) {
|
||||||
if (option == SO_RCVBUF) {
|
if (option == SO_RCVBUF) {
|
||||||
return (T) Integer.valueOf(getReceiveBufferSize());
|
return (T) Integer.valueOf(getReceiveBufferSize());
|
||||||
|
Loading…
Reference in New Issue
Block a user