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