From 068bb037bf9ed985dd90d31ff821aaba1df3d2fc Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 24 Aug 2026 19:07:53 -0700 Subject: [PATCH] Change code to make Eclipse compiler happy Extract a local variable to fix compiler error that only seems to happen in Eclipse. --- .../springframework/boot/logging/structured/ContextPairs.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/spring-boot/src/main/java/org/springframework/boot/logging/structured/ContextPairs.java b/core/spring-boot/src/main/java/org/springframework/boot/logging/structured/ContextPairs.java index 75c268d7201..f45465fa05c 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/logging/structured/ContextPairs.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/logging/structured/ContextPairs.java @@ -138,7 +138,8 @@ public class ContextPairs { */ @SuppressWarnings("NullAway") // Doesn't detect lambda with correct nullability public void addMapEntries(Function> extractor) { - add(extractor.andThen(Map::entrySet), Map.Entry::getKey, Map.Entry::getValue); + Function>> elementsExtractor = extractor.andThen(Map::entrySet); + add(elementsExtractor, Map.Entry::getKey, Map.Entry::getValue); } /**