Skip to content

Commit

Permalink
Add toString method in DefaultHttp2WindowUpdateFrame (#10763)
Browse files Browse the repository at this point in the history
Motivation:
We should have the `toString` method in `DefaultHttp2WindowUpdateFrame` because it makes debugging a little easy.

Modification:
Added `toString` method.

Result:
`toString` method to help in debugging.


Co-authored-by: Norman Maurer <norman_maurer@apple.com>
  • Loading branch information
hyperxpro and normanmaurer committed Nov 3, 2020
1 parent d16c23d commit e4baa67
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package io.netty.handler.codec.http2;

import io.netty.util.internal.StringUtil;
import io.netty.util.internal.UnstableApi;

/**
Expand Down Expand Up @@ -44,4 +45,10 @@ public String name() {
public int windowSizeIncrement() {
return windowUpdateIncrement;
}

@Override
public String toString() {
return StringUtil.simpleClassName(this) +
"(stream=" + stream() + ", windowUpdateIncrement=" + windowUpdateIncrement + ')';
}
}

0 comments on commit e4baa67

Please sign in to comment.