From 0b10cc9b13fa782b7e318fdbc0d8c790a472f722 Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Mon, 12 Feb 2018 10:53:48 +0100 Subject: [PATCH 1/3] Remove Brotli compressor --- .../compress/compressors/CompressorStreamFactory.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java b/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java index ca0973095..2406d5a44 100644 --- a/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java +++ b/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java @@ -30,8 +30,6 @@ import java.util.SortedMap; import java.util.TreeMap; -import org.apache.commons.compress.compressors.brotli.BrotliCompressorInputStream; -import org.apache.commons.compress.compressors.brotli.BrotliUtils; import org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream; import org.apache.commons.compress.compressors.bzip2.BZip2CompressorOutputStream; import org.apache.commons.compress.compressors.deflate.DeflateCompressorInputStream; @@ -545,10 +543,7 @@ public CompressorInputStream createCompressorInputStream(final String name, fina } if (BROTLI.equalsIgnoreCase(name)) { - if (!BrotliUtils.isBrotliCompressionAvailable()) { - throw new CompressorException("Brotli compression is not available." + YOU_NEED_BROTLI_DEC); - } - return new BrotliCompressorInputStream(in); + throw new CompressorException("Brotli compression is not available in this build."); } if (XZ.equalsIgnoreCase(name)) { -- 2.43.0