Issue #3242 - Post-review cleanup of AbstractWebSocketConnection dump of EndPoint

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Joakim Erdfelt 2019-01-11 11:27:10 -06:00
parent e9143725b0
commit 1b7ae00be3

View File

@ -29,8 +29,8 @@ import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicLong; import java.util.concurrent.atomic.AtomicLong;
import org.eclipse.jetty.io.AbstractConnection; import org.eclipse.jetty.io.AbstractConnection;
import org.eclipse.jetty.io.AbstractEndPoint;
import org.eclipse.jetty.io.ByteBufferPool; import org.eclipse.jetty.io.ByteBufferPool;
import org.eclipse.jetty.io.ChannelEndPoint;
import org.eclipse.jetty.io.Connection; import org.eclipse.jetty.io.Connection;
import org.eclipse.jetty.io.EndPoint; import org.eclipse.jetty.io.EndPoint;
import org.eclipse.jetty.util.BufferUtil; import org.eclipse.jetty.util.BufferUtil;
@ -637,10 +637,10 @@ public abstract class AbstractWebSocketConnection extends AbstractConnection imp
} }
public void dump(Appendable out, String indent) throws IOException { public void dump(Appendable out, String indent) throws IOException {
Object endpRef = toConnectionString();
EndPoint endp = getEndPoint(); EndPoint endp = getEndPoint();
if(endp instanceof ChannelEndPoint) Object endpRef = endp.toString();
endpRef = ((ChannelEndPoint) endp).toEndPointString(); if(endp instanceof AbstractEndPoint)
endpRef = ((AbstractEndPoint) endp).toEndPointString();
Dumpable.dumpObjects(out, indent, this, endpRef, ioState, flusher, generator, parser); Dumpable.dumpObjects(out, indent, this, endpRef, ioState, flusher, generator, parser);
} }