fix the other gzip direction on android too

This commit is contained in:
zzz
2011-06-11 17:05:24 +00:00
parent 20f67ae8e9
commit 550bb1aaae

View File

@ -15,7 +15,9 @@ import net.i2p.data.DataHelper;
*/
public class ReusableGZIPInputStream extends ResettableGZIPInputStream {
// Apache Harmony 5.0M13 Deflater doesn't work after reset()
private static final boolean ENABLE_CACHING = !System.getProperty("java.vendor").startsWith("Apache");
// Neither does Android
private static final boolean ENABLE_CACHING = !(System.getProperty("java.vendor").startsWith("Apache") ||
System.getProperty("java.vendor").contains("Android"));
private static final LinkedBlockingQueue<ReusableGZIPInputStream> _available;
static {
if (ENABLE_CACHING)