04db9b
From d42b16c3334229cc400c6713f3bd11c8df2f70cc Mon Sep 17 00:00:00 2001
04db9b
From: Michael Simacek <msimacek@redhat.com>
04db9b
Date: Mon, 12 Feb 2018 10:53:48 +0100
04db9b
Subject: [PATCH 1/3] Remove Brotli compressor
04db9b
04db9b
---
04db9b
 .../compress/compressors/CompressorStreamFactory.java      | 7 +------
04db9b
 1 file changed, 1 insertion(+), 6 deletions(-)
04db9b
04db9b
diff --git a/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java b/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java
04db9b
index d730b9d..ab178a9 100644
04db9b
--- a/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java
04db9b
+++ b/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java
04db9b
@@ -31,8 +31,6 @@ import java.util.Set;
04db9b
 import java.util.SortedMap;
04db9b
 import java.util.TreeMap;
04db9b
 
04db9b
-import org.apache.commons.compress.compressors.brotli.BrotliCompressorInputStream;
04db9b
-import org.apache.commons.compress.compressors.brotli.BrotliUtils;
04db9b
 import org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream;
04db9b
 import org.apache.commons.compress.compressors.bzip2.BZip2CompressorOutputStream;
04db9b
 import org.apache.commons.compress.compressors.deflate.DeflateCompressorInputStream;
04db9b
@@ -586,10 +584,7 @@ public class CompressorStreamFactory implements CompressorStreamProvider {
04db9b
             }
04db9b
 
04db9b
             if (BROTLI.equalsIgnoreCase(name)) {
04db9b
-                if (!BrotliUtils.isBrotliCompressionAvailable()) {
04db9b
-                    throw new CompressorException("Brotli compression is not available." + YOU_NEED_BROTLI_DEC);
04db9b
-                }
04db9b
-                return new BrotliCompressorInputStream(in);
04db9b
+                throw new CompressorException("Brotli compression is not available in this build.");
04db9b
             }
04db9b
 
04db9b
             if (XZ.equalsIgnoreCase(name)) {
04db9b
-- 
04db9b
2.20.1
04db9b