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:
PJ Fanning 2021-11-02 14:50:47 +00:00
parent 8bf6a489f6
commit f3d36d5271
1 changed files with 4 additions and 1 deletions

View File

@ -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();
}
}
}