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