Update HttpContentCompressor to pass correct message to ObjectUtil (#11482)

Motivation:
In #11256, We introduced `Iterable` as a parameter but later in review, it was removed. But we forgot to change `compressionOptionsIterable` to just `compressionOptions`.

Modification:
Changed `compressionOptionsIterable` to `compressionOptions`.

Result:
Correct ObjectUtil message
This commit is contained in:
Aayush Atharva 2021-07-13 11:41:01 +05:30 committed by Norman Maurer
parent aa003f8fec
commit c5b5ea5e75

View File

@ -167,7 +167,7 @@ public class HttpContentCompressor extends HttpContentEncoder {
deflateOptions = StandardCompressionOptions.deflate();
zstdOptions = StandardCompressionOptions.zstd();
} else {
ObjectUtil.deepCheckNotNull("compressionOptionsIterable", compressionOptions);
ObjectUtil.deepCheckNotNull("compressionOptions", compressionOptions);
for (CompressionOptions compressionOption : compressionOptions) {
if (compressionOption instanceof BrotliOptions) {
brotliOptions = (BrotliOptions) compressionOption;