From 2172d63be9eef6588fe8ec73b9563114734c4500 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Fri, 5 Oct 2018 20:09:45 +0000 Subject: [PATCH] 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 --- .../testcases/org/apache/poi/openxml4j/opc/TestPackage.java | 4 ++-- 1 file 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); -- 2.39.5