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