Skip to content

Commit 8eca3a3

Browse files
committed
Polishing
1 parent 80a7371 commit 8eca3a3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

spring-test/src/main/java/org/springframework/test/context/cache/ContextCache.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public interface ContextCache {
8585

8686
/**
8787
* Determine whether there is a cached context for the given key.
88-
* @param key the context key (never {@code null})
88+
* @param key the context key; never {@code null}
8989
* @return {@code true} if the cache contains a context with the given key
9090
*/
9191
boolean contains(MergedContextConfiguration key);
@@ -99,7 +99,7 @@ public interface ContextCache {
9999
* restarted}. This applies to parent contexts as well.
100100
* <p>In addition, the {@linkplain #getHitCount() hit} and
101101
* {@linkplain #getMissCount() miss} counts must be updated accordingly.
102-
* @param key the context key (never {@code null})
102+
* @param key the context key; never {@code null}
103103
* @return the corresponding {@code ApplicationContext} instance, or {@code null}
104104
* if not found in the cache
105105
* @see #unregisterContextUsage(MergedContextConfiguration, Class)
@@ -108,10 +108,11 @@ public interface ContextCache {
108108
@Nullable ApplicationContext get(MergedContextConfiguration key);
109109

110110
/**
111-
* Explicitly add an {@code ApplicationContext} instance to the cache
112-
* under the given key, potentially honoring a custom eviction policy.
113-
* @param key the context key (never {@code null})
114-
* @param context the {@code ApplicationContext} instance (never {@code null})
111+
* Explicitly add an {@link ApplicationContext} to the cache under the given
112+
* key, potentially honoring a custom eviction policy.
113+
* @param key the context key; never {@code null}
114+
* @param context the {@code ApplicationContext}; never {@code null}
115+
* @see #get(MergedContextConfiguration)
115116
*/
116117
void put(MergedContextConfiguration key, ApplicationContext context);
117118

0 commit comments

Comments
 (0)