From 263171f80eb8f97d1db8843cc0c6d7bef9709d99 Mon Sep 17 00:00:00 2001 From: Axel Howind Date: Wed, 28 Feb 2024 09:35:49 +0000 Subject: [PATCH] use method reference git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916035 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/hssf/record/aggregates/CFRecordsAggregate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/record/aggregates/CFRecordsAggregate.java b/poi/src/main/java/org/apache/poi/hssf/record/aggregates/CFRecordsAggregate.java index bbfe353873..b5da3a91c5 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/aggregates/CFRecordsAggregate.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/aggregates/CFRecordsAggregate.java @@ -63,7 +63,7 @@ public final class CFRecordsAggregate extends RecordAggregate implements Generic public CFRecordsAggregate(CFRecordsAggregate other) { header = other.header.copy(); - other.rules.stream().map(t -> t.copy()).forEach(rules::add); + other.rules.stream().map(CFRuleBase::copy).forEach(rules::add); } private CFRecordsAggregate(CFHeaderBase pHeader, CFRuleBase[] pRules) {