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