From c67b2bf0c65e90a2b497dd923b6cf778de7a7f26 Mon Sep 17 00:00:00 2001 From: tanglitao Date: Wed, 27 Aug 2025 17:24:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=B3=E5=85=83=E7=B4=A0=E6=94=B6=E9=9B=86?= =?UTF-8?q?=E5=99=A8=E9=94=99=E8=AF=AF=E7=9A=84=E5=88=A4=E6=96=AD=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/dromara/hutool/core/stream/CollectorUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hutool-core/src/main/java/org/dromara/hutool/core/stream/CollectorUtil.java b/hutool-core/src/main/java/org/dromara/hutool/core/stream/CollectorUtil.java index be3fdf233..96d875ade 100644 --- a/hutool-core/src/main/java/org/dromara/hutool/core/stream/CollectorUtil.java +++ b/hutool-core/src/main/java/org/dromara/hutool/core/stream/CollectorUtil.java @@ -534,7 +534,7 @@ public class CollectorUtil { } final RR finisherRightValue; - if (lDownstream.characteristics().contains(Collector.Characteristics.IDENTITY_FINISH)) { + if (rDownstream.characteristics().contains(Collector.Characteristics.IDENTITY_FINISH)) { finisherRightValue = (RR) finisherPair.getRight(); } else { finisherRightValue = rDownstream.finisher().apply(finisherPair.getRight()); @@ -628,7 +628,7 @@ public class CollectorUtil { } final RR finisherRightValue; - if (lDownstream.characteristics().contains(Collector.Characteristics.IDENTITY_FINISH)) { + if (rDownstream.characteristics().contains(Collector.Characteristics.IDENTITY_FINISH)) { finisherRightValue = (RR) finisherTriple.getRight(); } else { finisherRightValue = rDownstream.finisher().apply(finisherTriple.getRight());