mirror of https://github.com/apache/poi.git
[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:
parent
7ad1238393
commit
1d2905bc05
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue