mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 06:29:10 +00:00
Mark applicable Scope's methods as default
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
committed by
Juergen Hoeller
parent
88257f7dfd
commit
410a9ce108
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
-11
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user