2013/10/22 <[email protected]>:
> Author: markt
> Date: Tue Oct 22 12:24:06 2013
> New Revision: 1534612
>
> URL: http://svn.apache.org/r1534612
> Log:
> Improve debug logging of SocketWrapper that just uses toString()
>
> Modified:
> tomcat/trunk/java/org/apache/tomcat/util/net/SocketWrapper.java
>
> Modified: tomcat/trunk/java/org/apache/tomcat/util/net/SocketWrapper.java
> URL:
> http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/SocketWrapper.java?rev=1534612&r1=1534611&r2=1534612&view=diff
> ==============================================================================
> --- tomcat/trunk/java/org/apache/tomcat/util/net/SocketWrapper.java (original)
> +++ tomcat/trunk/java/org/apache/tomcat/util/net/SocketWrapper.java Tue Oct
> 22 12:24:06 2013
> @@ -162,4 +162,16 @@ public class SocketWrapper<E> {
> this.timeout = timeout;
> upgraded = false;
> }
> +
> + /**
> + * Overridden for debug purposes. No guarantees are made about the
> format of
> + * this message which may vary significantly between poitn releases.
s/poitn/point/
> + * <p>
> + * {@inheritDoc}
> + */
> + @Override
> + public String toString() {
> + return super.toString() + ":" +
> + (socket == null ? "null" : socket.toString());
String.valueOf(socket) will print the same with less code.
> + }
> }
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]