From 347fcc3e157f3756a75de50101a2770919d32004 Mon Sep 17 00:00:00 2001 From: Patrick Koenig Date: Tue, 14 Nov 2023 10:39:16 -0800 Subject: [PATCH] Implement Http2Headers.isEmpty (#10663) --- netty/src/main/java/io/grpc/netty/AbstractHttp2Headers.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netty/src/main/java/io/grpc/netty/AbstractHttp2Headers.java b/netty/src/main/java/io/grpc/netty/AbstractHttp2Headers.java index 7e3c7144952..00395acda53 100644 --- a/netty/src/main/java/io/grpc/netty/AbstractHttp2Headers.java +++ b/netty/src/main/java/io/grpc/netty/AbstractHttp2Headers.java @@ -37,7 +37,7 @@ public int size() { @Override public boolean isEmpty() { - throw new UnsupportedOperationException(); + return size() == 0; } @Override