diff --git a/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2GoAwayFrame.java b/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2GoAwayFrame.java index b1c5265ad083..77207673303f 100644 --- a/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2GoAwayFrame.java +++ b/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2GoAwayFrame.java @@ -160,15 +160,13 @@ public boolean equals(Object o) { return false; } DefaultHttp2GoAwayFrame other = (DefaultHttp2GoAwayFrame) o; - return super.equals(o) && errorCode == other.errorCode && content().equals(other.content()) - && extraStreamIds == other.extraStreamIds; + return errorCode == other.errorCode && extraStreamIds == other.extraStreamIds && super.equals(other); } @Override public int hashCode() { - int hash = 237395317; + int hash = super.hashCode(); hash = hash * 31 + (int) (errorCode ^ (errorCode >>> 32)); - hash = hash * 31 + content().hashCode(); hash = hash * 31 + extraStreamIds; return hash; }