[bug-65854] don't warn about close on read-only zip entry

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897562 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-01-28 10:41:31 +00:00
parent 7ad1238393
commit 1d2905bc05
2 changed files with 2 additions and 2 deletions

View File

@ -442,7 +442,7 @@ public abstract class OPCPackage implements RelationshipSource, Closeable {
}
if (this.packageAccess == PackageAccess.READ) {
LOG.atWarn().log("The close() method is intended to SAVE a package. This package is open in READ ONLY mode, use the revert() method instead!");
LOG.atDebug().log("The close() method is intended to SAVE a package. This package is open in READ ONLY mode, use the revert() method instead!");
revert();
return;
}

View File

@ -251,7 +251,7 @@ public final class ColumnInfoRecordsAggregate extends RecordAggregate implements
int endIdx = findEndOfColumnOutlineGroup(idx);
// expand:
// colapsed bit must be unset
// collapsed bit must be unset
// hidden bit gets unset _if_ surrounding groups are expanded you can determine
// this by looking at the hidden bit of the enclosing group. You will have
// to look at the start and the end of the current group to determine which