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