From f6517e9642811df8fbebddfd1dfc608693b2d9d8 Mon Sep 17 00:00:00 2001 From: xingyutangyuan <147447743+xingyutangyuan@users.noreply.github.com> Date: Sat, 28 Oct 2023 18:14:25 -0700 Subject: [PATCH] BiStream.crossJoining() fails compiling in my local Eclipse. By adding a bit of extra type information (which looks reasonable to me), it fixes the Eclipse issue --- mug/src/main/java/com/google/mu/util/stream/BiStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mug/src/main/java/com/google/mu/util/stream/BiStream.java b/mug/src/main/java/com/google/mu/util/stream/BiStream.java index b91b3e5335..68dd504d12 100644 --- a/mug/src/main/java/com/google/mu/util/stream/BiStream.java +++ b/mug/src/main/java/com/google/mu/util/stream/BiStream.java @@ -363,7 +363,7 @@ public static Builder builder() { requireNonNull(right); return collectingAndThen( toList(), - left -> + (List left) -> // If `right` is infinite, even limit(1) will result in infinite loop otherwise. left.isEmpty() ? empty() : concat(right.map(r -> from(left, identity(), l -> r)))); }