File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
main/java/org/springframework/test/context/cache
test/java/org/springframework/test/context/cache Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,10 @@ public interface ContextCache {
116116 * @param context the {@code ApplicationContext}; never {@code null}
117117 * @see #get(MergedContextConfiguration)
118118 * @see #put(MergedContextConfiguration, LoadFunction)
119+ * @deprecated since Spring Framework 7.0 in favor of
120+ * {@link #put(MergedContextConfiguration, LoadFunction)}
119121 */
122+ @ Deprecated (since = "7.0" )
120123 void put (MergedContextConfiguration key , ApplicationContext context );
121124
122125 /**
Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ private void restartContextIfNecessary(ApplicationContext context) {
154154 }
155155
156156 @ Override
157+ @ Deprecated (since = "7.0" )
157158 public void put (MergedContextConfiguration key , ApplicationContext context ) {
158159 Assert .notNull (key , "Key must not be null" );
159160 Assert .notNull (context , "ApplicationContext must not be null" );
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ void maxCacheSizeZero() {
8383
8484
8585 @ Nested
86+ @ SuppressWarnings ("deprecation" )
8687 class PutUnitTests {
8788
8889 @ Test
You can’t perform that action at this time.
0 commit comments