]> source.dussan.org Git - poi.git/commit
Fix file-handle-leaks when re-writing documents or slideshows
authorDominik Stadler <centic@apache.org>
Sun, 1 Nov 2020 09:22:09 +0000 (09:22 +0000)
committerDominik Stadler <centic@apache.org>
Sun, 1 Nov 2020 09:22:09 +0000 (09:22 +0000)
commitd835bdef42a46f6b70baaf558e0a716914c2a2cb
treea0e5a1431acc98297c5f58515c0a9606eeeb5fce
parent232d734941d4a082841e42b9451f2ed1b540bf04
Fix file-handle-leaks when re-writing documents or slideshows

When replacing a directory, we should close the previous one
Close some resources in tests

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1883038 13f79535-47bb-0310-9956-ffa450edef68
src/java/org/apache/poi/POIDocument.java
src/java/org/apache/poi/poifs/nio/ByteArrayBackedDataSource.java
src/java/org/apache/poi/poifs/nio/FileBackedDataSource.java
src/ooxml/testcases/org/apache/poi/ss/tests/TestWorkbookFactory.java
src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataValidationConstraint.java
src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFSlideShow.java
src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFSlideShowImpl.java
src/testcases/org/apache/poi/poifs/filesystem/TestFileSystemBugs.java