Simplified toString().
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
c7c85a9a01
commit
f8c45b1c6c
|
@ -393,10 +393,8 @@ public class HttpChannelOverHTTP2 extends HttpChannel implements Closeable, Writ
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
IStream stream = getStream();
|
IStream stream = getStream();
|
||||||
long streamId = -1;
|
long streamId = stream == null ? -1 : stream.getId();
|
||||||
if (stream != null)
|
return String.format("%s#%d", super.toString(), streamId);
|
||||||
streamId = stream.getId();
|
|
||||||
return String.format("%s#%d", super.toString(), getStream() == null ? -1 : streamId);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private class FailureTask implements Runnable
|
private class FailureTask implements Runnable
|
||||||
|
|
Loading…
Reference in New Issue