Simplified toString().

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2018-02-22 11:14:44 +01:00
parent c7c85a9a01
commit f8c45b1c6c
1 changed files with 2 additions and 4 deletions

View File

@ -393,10 +393,8 @@ public class HttpChannelOverHTTP2 extends HttpChannel implements Closeable, Writ
public String toString()
{
IStream stream = getStream();
long streamId = -1;
if (stream != null)
streamId = stream.getId();
return String.format("%s#%d", super.toString(), getStream() == null ? -1 : streamId);
long streamId = stream == null ? -1 : stream.getId();
return String.format("%s#%d", super.toString(), streamId);
}
private class FailureTask implements Runnable