From 3cce40bd799077e63318ec2b979e605a6021438d Mon Sep 17 00:00:00 2001 From: John Fallows Date: Sun, 19 Aug 2012 13:49:09 -0700 Subject: [PATCH] Suppress unchecked cast warnings for config options. --- .../netty/channel/socket/aio/AioServerSocketChannelConfig.java | 1 + .../java/io/netty/channel/socket/aio/AioSocketChannelConfig.java | 1 + 2 files changed, 2 insertions(+) diff --git a/transport/src/main/java/io/netty/channel/socket/aio/AioServerSocketChannelConfig.java b/transport/src/main/java/io/netty/channel/socket/aio/AioServerSocketChannelConfig.java index 990e8172b5..3f59d9328a 100644 --- a/transport/src/main/java/io/netty/channel/socket/aio/AioServerSocketChannelConfig.java +++ b/transport/src/main/java/io/netty/channel/socket/aio/AioServerSocketChannelConfig.java @@ -46,6 +46,7 @@ final class AioServerSocketChannelConfig extends DefaultChannelConfig } @Override + @SuppressWarnings("unchecked") public T getOption(ChannelOption option) { if (option == SO_RCVBUF) { return (T) Integer.valueOf(getReceiveBufferSize()); diff --git a/transport/src/main/java/io/netty/channel/socket/aio/AioSocketChannelConfig.java b/transport/src/main/java/io/netty/channel/socket/aio/AioSocketChannelConfig.java index ae1be50145..ba0481c62d 100644 --- a/transport/src/main/java/io/netty/channel/socket/aio/AioSocketChannelConfig.java +++ b/transport/src/main/java/io/netty/channel/socket/aio/AioSocketChannelConfig.java @@ -57,6 +57,7 @@ final class AioSocketChannelConfig extends DefaultChannelConfig } @Override + @SuppressWarnings("unchecked") public T getOption(ChannelOption option) { if (option == SO_RCVBUF) { return (T) Integer.valueOf(getReceiveBufferSize());