]> source.dussan.org Git - poi.git/commit
Make POIXMLDocument implement Closeable as it holds an OCPPackage with open resources...
authorDominik Stadler <centic@apache.org>
Tue, 26 May 2015 19:30:04 +0000 (19:30 +0000)
committerDominik Stadler <centic@apache.org>
Tue, 26 May 2015 19:30:04 +0000 (19:30 +0000)
commit9017803980006ead9ad3933a64b8c9e8f2ea37cb
treeff264378f5bbdd9ff66bb2f30074cef4fdb67245
parent2f87b078e990dda98ec9792aedeb06d4b0b9f1ca
Make POIXMLDocument implement Closeable as it holds an OCPPackage with open resources and thus should be closed after usage. Until now only XSSFWorkbook did this, but it makes sense for all derived classes.
Also make close() in POIXMLDocument public to not have to re-implement it in all sub-classes.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1681822 13f79535-47bb-0310-9956-ffa450edef68
src/ooxml/java/org/apache/poi/POIXMLDocument.java
src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java
src/ooxml/testcases/org/apache/poi/TestPOIXMLDocument.java