]> source.dussan.org Git - poi.git/commitdiff
use method reference
authorAxel Howind <axh@apache.org>
Wed, 28 Feb 2024 09:35:49 +0000 (09:35 +0000)
committerAxel Howind <axh@apache.org>
Wed, 28 Feb 2024 09:35:49 +0000 (09:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916035 13f79535-47bb-0310-9956-ffa450edef68

poi/src/main/java/org/apache/poi/hssf/record/aggregates/CFRecordsAggregate.java

index bbfe353873078312d1a8974a4b3238f030554774..b5da3a91c5e04d87d316597e0a7047f9ec008e18 100644 (file)
@@ -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) {