From 93ce99ea066339aa23892d063a2fa75740617f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Wed, 31 Dec 2025 10:49:58 +0100 Subject: [PATCH] Polishing --- .../org/springframework/core/PropagationContextElement.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/core/PropagationContextElement.java b/spring-core/src/main/java/org/springframework/core/PropagationContextElement.java index d78d2f66ca6..a490179d82b 100644 --- a/spring-core/src/main/java/org/springframework/core/PropagationContextElement.java +++ b/spring-core/src/main/java/org/springframework/core/PropagationContextElement.java @@ -103,9 +103,8 @@ public final class PropagationContextElement extends AbstractCoroutineContextEle private static final class ReactorDelegate { - @Nullable @SuppressWarnings({"unchecked", "rawtypes"}) - public static ContextSnapshot captureFrom(CoroutineContext context) { + public static @Nullable ContextSnapshot captureFrom(CoroutineContext context) { ReactorContext reactorContext = (ReactorContext)context.get((CoroutineContext.Key)ReactorContext.Key); ContextView contextView = reactorContext != null ? reactorContext.getContext() : null; if (contextView != null) {