mirror of https://github.com/apache/poi.git
use package revert due to new warning log about using revert
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894687 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8bf6a489f6
commit
f3d36d5271
|
@ -255,9 +255,12 @@ public class XLSX2CSV {
|
|||
minColumns = Integer.parseInt(args[1]);
|
||||
|
||||
// The package open is instantaneous, as it should be.
|
||||
try (OPCPackage p = OPCPackage.open(xlsxFile.getPath(), PackageAccess.READ)) {
|
||||
OPCPackage p = OPCPackage.open(xlsxFile.getPath(), PackageAccess.READ)
|
||||
try {
|
||||
XLSX2CSV xlsx2csv = new XLSX2CSV(p, System.out, minColumns);
|
||||
xlsx2csv.process();
|
||||
} finally {
|
||||
p.revert();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue