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