From 1d2905bc05226e93d746a2a03b8f0128603468a2 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Fri, 28 Jan 2022 10:41:31 +0000 Subject: [PATCH] [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 --- .../src/main/java/org/apache/poi/openxml4j/opc/OPCPackage.java | 2 +- .../poi/hssf/record/aggregates/ColumnInfoRecordsAggregate.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/OPCPackage.java b/poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/OPCPackage.java index b19b3c1d08..ac9568afba 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/OPCPackage.java +++ b/poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/OPCPackage.java @@ -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; } diff --git a/poi/src/main/java/org/apache/poi/hssf/record/aggregates/ColumnInfoRecordsAggregate.java b/poi/src/main/java/org/apache/poi/hssf/record/aggregates/ColumnInfoRecordsAggregate.java index 8f9e24c9fb..b6dd6688cd 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/aggregates/ColumnInfoRecordsAggregate.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/aggregates/ColumnInfoRecordsAggregate.java @@ -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 -- 2.39.5