summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2018-10-05 20:09:45 +0000
committerPJ Fanning <fanningpj@apache.org>2018-10-05 20:09:45 +0000
commit2172d63be9eef6588fe8ec73b9563114734c4500 (patch)
tree0b2e072763c302816ec11b7aca769dbf3249cb4f
parent45bcbd982829df7bc8104b9885f152d773bea1a6 (diff)
downloadpoi-2172d63be9eef6588fe8ec73b9563114734c4500.tar.gz
poi-2172d63be9eef6588fe8ec73b9563114734c4500.zip
use jaxp transformer instead of dom serializer to try fix old-xerces test failure
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1842979 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java b/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java
index d649c515a7..94a9658323 100644
--- a/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java
+++ b/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java
@@ -925,8 +925,8 @@ public final class TestPackage {
if (ze.getSize() == 0) {
continue;
}
- // add zip entry header ~ 30 bytes
- long size = ze.getSize()+30;
+ // add zip entry header ~ 128 bytes
+ long size = ze.getSize()+128;
double ratio = ze.getCompressedSize() / (double)size;
min_ratio = Math.min(min_ratio, ratio);
max_size = Math.max(max_size, size);