From ec88f6617c872ac62a3f6f9f0c4f9b9f04a38911 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Sat, 7 Jul 2012 14:48:34 +0900 Subject: [PATCH] Fix compilation error and warning --- transport/src/main/java/io/netty/channel/AbstractChannel.java | 2 +- .../io/netty/channel/socket/aio/AioSocketChannelConfig.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/transport/src/main/java/io/netty/channel/AbstractChannel.java b/transport/src/main/java/io/netty/channel/AbstractChannel.java index 002d4db47c..366223f417 100644 --- a/transport/src/main/java/io/netty/channel/AbstractChannel.java +++ b/transport/src/main/java/io/netty/channel/AbstractChannel.java @@ -760,7 +760,7 @@ public abstract class AbstractChannel extends DefaultAttributeMap implements Cha } } - private void notifyFlushFutures(Throwable cause) { + protected void notifyFlushFutures(Throwable cause) { notifyFlushFutures(); for (;;) { FlushCheckpoint cp = flushCheckpoints.poll(); 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 8722206054..45228e0804 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 @@ -51,7 +51,6 @@ public class AioSocketChannelConfig extends DefaultChannelConfig SO_RCVBUF, SO_SNDBUF, TCP_NODELAY, SO_KEEPALIVE, SO_REUSEADDR, SO_LINGER, IP_TOS); } - @SuppressWarnings("unchecked") @Override public T getOption(ChannelOption option) { if (option == SO_RCVBUF) { @@ -107,7 +106,7 @@ public class AioSocketChannelConfig extends DefaultChannelConfig @Override public int getReceiveBufferSize() { try { - return (int) channel.getOption(StandardSocketOptions.SO_RCVBUF); + return channel.getOption(StandardSocketOptions.SO_RCVBUF); } catch (IOException e) { throw new ChannelException(e); }