From b56bdd89ddea1c31feca933df3105dffb9e094b7 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Sat, 21 Feb 2009 19:21:12 +0000 Subject: [PATCH] Marked some classes as final in the http tunneling socket transport --- .../org/jboss/netty/channel/socket/http/HttpTunnelWorker.java | 3 ++- .../socket/http/HttpTunnelingClientSocketPipelineSink.java | 2 +- .../channel/socket/http/HttpTunnelingSocketChannelConfig.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelWorker.java b/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelWorker.java index 99c2ff59f4..14f1b618d4 100644 --- a/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelWorker.java +++ b/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelWorker.java @@ -34,7 +34,8 @@ import org.jboss.netty.channel.ChannelFuture; * @author Andy Taylor (andy.taylor@jboss.org) * @version $Rev$, $Date$ */ -class HttpTunnelWorker implements Runnable { +final class HttpTunnelWorker implements Runnable { + private final HttpTunnelingClientSocketChannel channel; HttpTunnelWorker(HttpTunnelingClientSocketChannel channel) { diff --git a/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelingClientSocketPipelineSink.java b/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelingClientSocketPipelineSink.java index 27d51f56b8..28841559fd 100644 --- a/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelingClientSocketPipelineSink.java +++ b/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelingClientSocketPipelineSink.java @@ -42,7 +42,7 @@ import org.jboss.netty.util.ThreadRenamingRunnable; * @author Andy Taylor (andy.taylor@jboss.org) * @version $Rev$, $Date$ */ -class HttpTunnelingClientSocketPipelineSink extends AbstractChannelSink { +final class HttpTunnelingClientSocketPipelineSink extends AbstractChannelSink { static String LINE_TERMINATOR = "\r\n"; private final Executor workerExecutor; diff --git a/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelingSocketChannelConfig.java b/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelingSocketChannelConfig.java index 7e303441b1..ec967bbe0c 100644 --- a/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelingSocketChannelConfig.java +++ b/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelingSocketChannelConfig.java @@ -35,7 +35,7 @@ import org.jboss.netty.util.ConversionUtil; * @author Andy Taylor (andy.taylor@jboss.org) * @version $Rev$, $Date$ */ -class HttpTunnelingSocketChannelConfig extends DefaultChannelConfig +final class HttpTunnelingSocketChannelConfig extends DefaultChannelConfig implements SocketChannelConfig { final Socket socket;