Browse Source

Polishing

pull/36089/head
Sébastien Deleuze 1 month ago
parent
commit
93ce99ea06
  1. 3
      spring-core/src/main/java/org/springframework/core/PropagationContextElement.java

3
spring-core/src/main/java/org/springframework/core/PropagationContextElement.java

@ -103,9 +103,8 @@ public final class PropagationContextElement extends AbstractCoroutineContextEle @@ -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) {

Loading…
Cancel
Save