mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-12-06 17:18:54 +08:00
右元素收集器错误的判断修复
This commit is contained in:
parent
fa8f1f2091
commit
c67b2bf0c6
@ -534,7 +534,7 @@ public class CollectorUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final RR finisherRightValue;
|
final RR finisherRightValue;
|
||||||
if (lDownstream.characteristics().contains(Collector.Characteristics.IDENTITY_FINISH)) {
|
if (rDownstream.characteristics().contains(Collector.Characteristics.IDENTITY_FINISH)) {
|
||||||
finisherRightValue = (RR) finisherPair.getRight();
|
finisherRightValue = (RR) finisherPair.getRight();
|
||||||
} else {
|
} else {
|
||||||
finisherRightValue = rDownstream.finisher().apply(finisherPair.getRight());
|
finisherRightValue = rDownstream.finisher().apply(finisherPair.getRight());
|
||||||
@ -628,7 +628,7 @@ public class CollectorUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final RR finisherRightValue;
|
final RR finisherRightValue;
|
||||||
if (lDownstream.characteristics().contains(Collector.Characteristics.IDENTITY_FINISH)) {
|
if (rDownstream.characteristics().contains(Collector.Characteristics.IDENTITY_FINISH)) {
|
||||||
finisherRightValue = (RR) finisherTriple.getRight();
|
finisherRightValue = (RR) finisherTriple.getRight();
|
||||||
} else {
|
} else {
|
||||||
finisherRightValue = rDownstream.finisher().apply(finisherTriple.getRight());
|
finisherRightValue = rDownstream.finisher().apply(finisherTriple.getRight());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user