From e8da5e5162ef70572ca74af4df336c1cb1b4cece Mon Sep 17 00:00:00 2001 From: Scott Mitchell Date: Fri, 31 Mar 2017 17:49:32 -0700 Subject: [PATCH] Revert "Expose HTTP/2 HpackDecoder (#6589)" This reverts commit f4c635d30b23be6ce51866704c178232e98015e7. --- .../java/io/netty/handler/codec/http2/HpackDecoder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/codec-http2/src/main/java/io/netty/handler/codec/http2/HpackDecoder.java b/codec-http2/src/main/java/io/netty/handler/codec/http2/HpackDecoder.java index e4d5c5f0d4..dad2c6fc1d 100644 --- a/codec-http2/src/main/java/io/netty/handler/codec/http2/HpackDecoder.java +++ b/codec-http2/src/main/java/io/netty/handler/codec/http2/HpackDecoder.java @@ -49,7 +49,7 @@ import static io.netty.util.AsciiString.EMPTY_STRING; import static io.netty.util.internal.ObjectUtil.checkPositive; import static io.netty.util.internal.ThrowableUtil.unknownStackTrace; -public final class HpackDecoder { +final class HpackDecoder { private static final Http2Exception DECODE_ULE_128_DECOMPRESSION_EXCEPTION = unknownStackTrace( connectionError(COMPRESSION_ERROR, "HPACK - decompression failure"), HpackDecoder.class, "decodeULE128(..)"); @@ -96,7 +96,7 @@ public final class HpackDecoder { * (which is dangerous). * @param initialHuffmanDecodeCapacity Size of an intermediate buffer used during huffman decode. */ - public HpackDecoder(long maxHeaderListSize, int initialHuffmanDecodeCapacity) { + HpackDecoder(long maxHeaderListSize, int initialHuffmanDecodeCapacity) { this(maxHeaderListSize, initialHuffmanDecodeCapacity, DEFAULT_HEADER_TABLE_SIZE); } @@ -104,7 +104,7 @@ public final class HpackDecoder { * Exposed Used for testing only! Default values used in the initial settings frame are overriden intentionally * for testing but violate the RFC if used outside the scope of testing. */ - public HpackDecoder(long maxHeaderListSize, int initialHuffmanDecodeCapacity, int maxHeaderTableSize) { + HpackDecoder(long maxHeaderListSize, int initialHuffmanDecodeCapacity, int maxHeaderTableSize) { this.maxHeaderListSize = checkPositive(maxHeaderListSize, "maxHeaderListSize"); this.maxHeaderListSizeGoAway = Http2CodecUtil.calculateMaxHeaderListSizeGoAway(maxHeaderListSize);