diff --git a/transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java b/transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java index 5c30fe9d29..61fcea6f9a 100755 --- a/transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java +++ b/transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java @@ -40,7 +40,7 @@ import static io.netty.channel.DefaultChannelHandlerContext.*; * The default {@link ChannelPipeline} implementation. It is usually created * by a {@link Channel} implementation when the {@link Channel} is created. */ -public class DefaultChannelPipeline implements ChannelPipeline { +final class DefaultChannelPipeline implements ChannelPipeline { static final InternalLogger logger = InternalLoggerFactory.getInstance(DefaultChannelPipeline.class); diff --git a/transport/src/main/java/io/netty/channel/VoidChannelFuture.java b/transport/src/main/java/io/netty/channel/VoidChannelFuture.java index 07ca9a4d2a..05cc49624d 100644 --- a/transport/src/main/java/io/netty/channel/VoidChannelFuture.java +++ b/transport/src/main/java/io/netty/channel/VoidChannelFuture.java @@ -15,11 +15,9 @@ */ package io.netty.channel; -import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; -import java.util.concurrent.TimeoutException; -class VoidChannelFuture implements ChannelFuture.Unsafe { +final class VoidChannelFuture implements ChannelFuture.Unsafe { private final Channel channel; @@ -68,13 +66,13 @@ class VoidChannelFuture implements ChannelFuture.Unsafe { } @Override - public boolean await(long timeout, TimeUnit unit) throws InterruptedException { + public boolean await(long timeout, TimeUnit unit) { fail(); return false; } @Override - public boolean await(long timeoutMillis) throws InterruptedException { + public boolean await(long timeoutMillis) { fail(); return false; } @@ -123,7 +121,7 @@ class VoidChannelFuture implements ChannelFuture.Unsafe { } @Override - public ChannelFuture sync() throws InterruptedException { + public ChannelFuture sync() { fail(); return this; } @@ -135,14 +133,13 @@ class VoidChannelFuture implements ChannelFuture.Unsafe { } @Override - public Void get() throws InterruptedException, ExecutionException { + public Void get() { fail(); return null; } @Override - public Void get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, - TimeoutException { + public Void get(long timeout, TimeUnit unit) { fail(); return null; }