From 8a10adaa55a008d64cc587bdf2fb7da1b460b979 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 7a32de59f7..924361435d 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;