diff src/org/eclipse/jetty/io/nio/SslConnection.java @ 960:3cd4c706a61f

simplify ChannelEndPoint
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 13 Oct 2016 21:29:19 -0600
parents 7b94f5b33c64
children 866f2e801618
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/nio/SslConnection.java	Thu Oct 13 18:53:26 2016 -0600
+++ b/src/org/eclipse/jetty/io/nio/SslConnection.java	Thu Oct 13 21:29:19 2016 -0600
@@ -45,7 +45,7 @@
  * it's source/sink of encrypted data.   It then provides {@link #getSslEndPoint()} to
  * expose a source/sink of unencrypted data to another connection (eg HttpConnection).
  */
-public class SslConnection extends AbstractConnection implements AsyncConnection
+public final class SslConnection extends AbstractConnection implements AsyncConnection
 {
 	private final Logger _logger = LoggerFactory.getLogger("org.eclipse.jetty.io.nio.ssl");
 
@@ -167,7 +167,7 @@
 		}
 	}
 
-	/* ------------------------------------------------------------ */
+	@Override
 	public Connection handle() throws IOException
 	{
 		try
@@ -188,8 +188,8 @@
 				AsyncConnection next = (AsyncConnection)_connection.handle();
 				if (next!=_connection && next!=null)
 				{
-					_connection=next;
-					progress=true;
+					_connection = next;
+					progress = true;
 				}
 
 				_logger.debug("{} handle {} progress={}", _session, this, progress);
@@ -575,7 +575,6 @@
 	}
 
 
-	/* ------------------------------------------------------------ */
 	private ByteBuffer extractByteBuffer(Buffer buffer)
 	{
 		if (buffer.buffer() instanceof NIOBuffer)
@@ -588,7 +587,6 @@
 		return _sslEndPoint;
 	}
 
-	/* ------------------------------------------------------------ */
 	public String toString()
 	{
 		return String.format("%s %s", super.toString(), _sslEndPoint);
@@ -777,7 +775,7 @@
 
 		public void setConnection(Connection connection)
 		{
-			_connection=(AsyncConnection)connection;
+			_connection = (AsyncConnection)connection;
 		}
 
 		public String toString()