mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-01 03:19:13 +00:00
Issue #3242 - Post-review cleanup of AbstractWebSocketConnection dump of EndPoint
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
parent
e9143725b0
commit
1b7ae00be3
@ -29,8 +29,8 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
|
||||
import org.eclipse.jetty.io.AbstractConnection;
|
||||
import org.eclipse.jetty.io.AbstractEndPoint;
|
||||
import org.eclipse.jetty.io.ByteBufferPool;
|
||||
import org.eclipse.jetty.io.ChannelEndPoint;
|
||||
import org.eclipse.jetty.io.Connection;
|
||||
import org.eclipse.jetty.io.EndPoint;
|
||||
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 {
|
||||
Object endpRef = toConnectionString();
|
||||
EndPoint endp = getEndPoint();
|
||||
if(endp instanceof ChannelEndPoint)
|
||||
endpRef = ((ChannelEndPoint) endp).toEndPointString();
|
||||
Object endpRef = endp.toString();
|
||||
if(endp instanceof AbstractEndPoint)
|
||||
endpRef = ((AbstractEndPoint) endp).toEndPointString();
|
||||
Dumpable.dumpObjects(out, indent, this, endpRef, ioState, flusher, generator, parser);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user