Suppress unchecked cast warnings for config options.

This commit is contained in:
John Fallows 2012-08-19 13:49:09 -07:00
parent cd8e2576b4
commit 3cce40bd79
2 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,7 @@ final class AioServerSocketChannelConfig extends DefaultChannelConfig
}
@Override
@SuppressWarnings("unchecked")
public <T> T getOption(ChannelOption<T> option) {
if (option == SO_RCVBUF) {
return (T) Integer.valueOf(getReceiveBufferSize());

View File

@ -57,6 +57,7 @@ final class AioSocketChannelConfig extends DefaultChannelConfig
}
@Override
@SuppressWarnings("unchecked")
public <T> T getOption(ChannelOption<T> option) {
if (option == SO_RCVBUF) {
return (T) Integer.valueOf(getReceiveBufferSize());