Deprecate put(MergedContextConfiguration, ApplicationContext) in ContextCache

Closes gh-35415
This commit is contained in:
Sam Brannen
2025-09-04 14:26:56 +02:00
parent 02b3a2bf34
commit e5b58effa3
3 changed files with 5 additions and 0 deletions
@@ -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);
/**
@@ -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");