mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Deprecate put(MergedContextConfiguration, ApplicationContext) in ContextCache
Closes gh-35415
This commit is contained in:
+3
@@ -116,7 +116,10 @@ public interface ContextCache {
|
||||
* @param context the {@code ApplicationContext}; never {@code null}
|
||||
* @see #get(MergedContextConfiguration)
|
||||
* @see #put(MergedContextConfiguration, LoadFunction)
|
||||
* @deprecated since Spring Framework 7.0 in favor of
|
||||
* {@link #put(MergedContextConfiguration, LoadFunction)}
|
||||
*/
|
||||
@Deprecated(since = "7.0")
|
||||
void put(MergedContextConfiguration key, ApplicationContext context);
|
||||
|
||||
/**
|
||||
|
||||
+1
@@ -154,6 +154,7 @@ public class DefaultContextCache implements ContextCache {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated(since = "7.0")
|
||||
public void put(MergedContextConfiguration key, ApplicationContext context) {
|
||||
Assert.notNull(key, "Key must not be null");
|
||||
Assert.notNull(context, "ApplicationContext must not be null");
|
||||
|
||||
Reference in New Issue
Block a user