!1310 修复并发流下的middle未收集的bug

Merge pull request !1310 from tltwuyu/v6-dev
This commit is contained in:
Looly 2025-02-14 08:12:57 +00:00 committed by Gitee
commit 39b135bcd5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -548,7 +548,7 @@ public class CollectorUtil {
}
/**
* 将一个{@code Collection<T>}两个属性分流至两个Collection,并使用Pair收集需要指定Collection类型
* 将一个{@code Collection<T>}两个属性分流至两个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;
},