Fix inspector warnings

This commit is contained in:
Trustin Lee 2013-11-02 20:00:14 +09:00
parent 285f51d5ba
commit 2712ed9cbb
2 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,7 @@ public final class SocksServerConnectHandler extends SimpleChannelInboundHandler
@Override @Override
public void channelRead0(final ChannelHandlerContext ctx, final SocksCmdRequest request) throws Exception { public void channelRead0(final ChannelHandlerContext ctx, final SocksCmdRequest request) throws Exception {
Promise promise = ctx.executor().newPromise(); Promise<Channel> promise = ctx.executor().newPromise();
promise.addListener( promise.addListener(
new GenericFutureListener<Future<Channel>>() { new GenericFutureListener<Future<Channel>>() {
@Override @Override

View File

@ -69,6 +69,7 @@ public class DatagramUnicastTest extends AbstractDatagramTest {
run(); run();
} }
@SuppressWarnings("deprecation")
public void testSimpleSendWithoutBind(Bootstrap sb, Bootstrap cb) throws Throwable { public void testSimpleSendWithoutBind(Bootstrap sb, Bootstrap cb) throws Throwable {
final CountDownLatch latch = new CountDownLatch(1); final CountDownLatch latch = new CountDownLatch(1);