From 1e71d24f8c3992892b702b41c04a0ac30bddd22c Mon Sep 17 00:00:00 2001 From: tanglitao Date: Thu, 13 Feb 2025 18:41:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B9=B6=E5=8F=91=E6=B5=81?= =?UTF-8?q?=E4=B8=8B=E7=9A=84middle=E6=9C=AA=E6=94=B6=E9=9B=86=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/dromara/hutool/core/stream/CollectorUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 9762b358c..114baaec4 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 @@ -548,7 +548,7 @@ public class CollectorUtil { } /** - * 将一个{@code Collection}两个属性分流至两个Collection,并使用Pair收集。需要指定Collection类型 + * 将一个{@code Collection}两个属性分流至两个Collection,并使用Triple收集。需要指定Collection类型 * * @param lMapper 左属性收集方法 * @param mMapper 中属性收集方法 @@ -594,6 +594,7 @@ public class CollectorUtil { }, (listTriple1, listTriple2) -> { listTriple1.getLeft().addAll(listTriple2.getLeft()); + listTriple1.getMiddle().addAll(listTriple2.getMiddle()); listTriple1.getRight().addAll(listTriple2.getRight()); return listTriple1; },