Mark applicable Scope's methods as default

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
Yanming Zhou
2025-07-07 13:37:47 +02:00
committed by Juergen Hoeller
parent 88257f7dfd
commit 410a9ce108
13 changed files with 6 additions and 102 deletions
@@ -16,8 +16,6 @@
package org.springframework.web.context.request;
import org.jspecify.annotations.Nullable;
/**
* Request-backed {@link org.springframework.beans.factory.config.Scope}
* implementation.
@@ -44,13 +42,4 @@ public class RequestScope extends AbstractRequestAttributesScope {
return RequestAttributes.SCOPE_REQUEST;
}
/**
* There is no conversation id concept for a request, so this method
* returns {@code null}.
*/
@Override
public @Nullable String getConversationId() {
return null;
}
}
@@ -96,17 +96,6 @@ public class ServletContextScope implements Scope, DisposableBean {
}
}
@Override
public @Nullable Object resolveContextualObject(String key) {
return null;
}
@Override
public @Nullable String getConversationId() {
return null;
}
/**
* Invoke all registered destruction callbacks.
* To be called on ServletContext shutdown.