Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Http2Headers.size() instead of isEmpty() (#13717)
Motivation: grpc-java prior to version 1.59.1 does not implement `Http2Headers.isEmpty()` method (it throws `UnsupportedOperationException`). While the fix was released in 1.59.1, there is another issue with circular dependencies between `grpc-core` and `grpc-util` modules. To unblock Netty users that also depend on grpc-java, we can check the size. Modifications: - Use `Http2Headers.size()` instead of `Http2Headers.isEmpty()` in `DefaultHttp2ConnectionDecoder`; Result: Users of older grpc-java versions can independently bump Netty version.
- Loading branch information