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 GitHub
parent 8cbdefae23
commit 6085cd7ab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;