From 7510f408dc50457a04c54f241b352f40434b0b50 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Thu, 2 Jan 2020 20:53:42 +0000 Subject: [PATCH] [bug-64045] close resources if we throw exceptions git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872265 13f79535-47bb-0310-9956-ffa450edef68 --- src/ooxml/java/org/apache/poi/ooxml/POIXMLDocumentPart.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ooxml/java/org/apache/poi/ooxml/POIXMLDocumentPart.java b/src/ooxml/java/org/apache/poi/ooxml/POIXMLDocumentPart.java index 8412b276d6..c329025d14 100644 --- a/src/ooxml/java/org/apache/poi/ooxml/POIXMLDocumentPart.java +++ b/src/ooxml/java/org/apache/poi/ooxml/POIXMLDocumentPart.java @@ -36,7 +36,11 @@ import org.apache.poi.openxml4j.opc.PackageRelationshipCollection; import org.apache.poi.openxml4j.opc.PackageRelationshipTypes; import org.apache.poi.openxml4j.opc.PackagingURIHelper; import org.apache.poi.openxml4j.opc.TargetMode; -import org.apache.poi.util.*; +import org.apache.poi.util.IOUtils; +import org.apache.poi.util.Internal; +import org.apache.poi.util.POILogFactory; +import org.apache.poi.util.POILogger; +import org.apache.poi.util.Removal; import org.apache.poi.xddf.usermodel.chart.XDDFChart; import org.apache.poi.xssf.usermodel.XSSFRelation; import org.apache.poi.xssf.usermodel.XSSFWorkbook; -- 2.39.5