From 71f0e23bcbe3a502d4cb8d4010601a8d4204ac2b Mon Sep 17 00:00:00 2001 From: Aayush Atharva Date: Thu, 29 Oct 2020 15:09:02 +0530 Subject: [PATCH] Make Http2ToHttpHeaderTranslator method package-private. (#10736) Motivation: Http2ToHttpHeaderTranslator is a private class but translateHeaders(Iterable>) is public but it should be package-private. Modification: Removed public. Result: Correct access modifer. --- .../java/io/netty/handler/codec/http2/HttpConversionUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec-http2/src/main/java/io/netty/handler/codec/http2/HttpConversionUtil.java b/codec-http2/src/main/java/io/netty/handler/codec/http2/HttpConversionUtil.java index d018ded0a5..b3c75bd8a0 100644 --- a/codec-http2/src/main/java/io/netty/handler/codec/http2/HttpConversionUtil.java +++ b/codec-http2/src/main/java/io/netty/handler/codec/http2/HttpConversionUtil.java @@ -619,7 +619,7 @@ public final class HttpConversionUtil { translations = request ? REQUEST_HEADER_TRANSLATIONS : RESPONSE_HEADER_TRANSLATIONS; } - public void translateHeaders(Iterable> inputHeaders) throws Http2Exception { + void translateHeaders(Iterable> inputHeaders) throws Http2Exception { // lazily created as needed StringBuilder cookies = null;