You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by ah...@apache.org on 2026/08/17 13:04:56 UTC
(causeway) branch main updated: CAUSEWAY-4044: minor polish prev. commit
This is an automated email from the ASF dual-hosted git repository.
andi-huber pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/causeway.git
The following commit(s) were added to refs/heads/main by this push:
new 9cdcb90fd35 CAUSEWAY-4044: minor polish prev. commit
9cdcb90fd35 is described below
commit 9cdcb90fd35aa1f580c80e17240c003e6596da45
Author: andi-huber <ah...@apache.org>
AuthorDate: Mon Aug 17 15:04:51 2026 +0200
CAUSEWAY-4044: minor polish prev. commit
---
.../src/main/java/org/apache/causeway/commons/functional/Either.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/commons/src/main/java/org/apache/causeway/commons/functional/Either.java b/commons/src/main/java/org/apache/causeway/commons/functional/Either.java
index 3813d8f1a4a..72025b35c05 100644
--- a/commons/src/main/java/org/apache/causeway/commons/functional/Either.java
+++ b/commons/src/main/java/org/apache/causeway/commons/functional/Either.java
@@ -197,7 +197,8 @@ public static <L, R, T> Stream<T> foldStream(
final @Nullable Stream<Either<L, R>> inputStream,
final @Nullable Function<L, T> leftMapper,
final @Nullable Function<R, T> rightMapper) {
- if(inputStream==null)
+ if(inputStream==null
+ || (leftMapper==null && rightMapper==null))
return Stream.empty();
final Function<L, T> leftMapperNonNull = leftMapper!=null
? leftMapper