diff options
author | PJ Fanning <fanningpj@apache.org> | 2020-01-02 20:53:42 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2020-01-02 20:53:42 +0000 |
commit | 7510f408dc50457a04c54f241b352f40434b0b50 (patch) | |
tree | dd3ccf8e1370d896c5682593dd70f1df07b691a5 /src | |
parent | 22266e209a8f13a1ee88bafecb80e005303b165d (diff) | |
download | poi-7510f408dc50457a04c54f241b352f40434b0b50.tar.gz poi-7510f408dc50457a04c54f241b352f40434b0b50.zip |
[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
Diffstat (limited to 'src')
-rw-r--r-- | src/ooxml/java/org/apache/poi/ooxml/POIXMLDocumentPart.java | 6 |
1 files changed, 5 insertions, 1 deletions
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; |