@@ -69,24 +69,25 @@ class ContextCache {
69
69
70
70
71
71
/**
72
- * Clear all contexts from the cache and clears context hierarchy information as well.
72
+ * Clear all contexts from the cache and clear context hierarchy information as well.
73
73
*/
74
74
public void clear () {
75
75
this .contextMap .clear ();
76
76
this .hierarchyMap .clear ();
77
77
}
78
78
79
79
/**
80
- * Clear hit and miss count statistics for the cache (i.e., resets counters to zero).
80
+ * Clear hit and miss count statistics for the cache (i.e., reset counters to zero).
81
81
*/
82
82
public void clearStatistics () {
83
83
this .hitCount .set (0 );
84
84
this .missCount .set (0 );
85
85
}
86
86
87
87
/**
88
- * Return whether there is a cached context for the given key.
88
+ * Determine whether there is a cached context for the given key.
89
89
* @param key the context key (never {@code null})
90
+ * @return {@code true} if the cache contains a context with the given key
90
91
*/
91
92
public boolean contains (MergedContextConfiguration key ) {
92
93
Assert .notNull (key , "Key must not be null" );
@@ -223,9 +224,9 @@ private void remove(List<MergedContextConfiguration> removedContexts, MergedCont
223
224
}
224
225
225
226
/**
226
- * Determine the number of contexts currently stored in the cache. If the cache
227
- * contains more than <tt> Integer.MAX_VALUE</tt> elements, returns
228
- * <tt> Integer.MAX_VALUE</tt> .
227
+ * Determine the number of contexts currently stored in the cache.
228
+ * <p>If the cache contains more than {@code Integer.MAX_VALUE} elements,
229
+ * this method returns {@code Integer.MAX_VALUE} .
229
230
*/
230
231
public int size () {
231
232
return this .contextMap .size ();
@@ -239,7 +240,7 @@ public int getParentContextCount() {
239
240
}
240
241
241
242
/**
242
- * Generates a text string, which contains the {@linkplain #size() size} as well
243
+ * Generate a text string, which contains the {@linkplain #size} as well
243
244
* as the {@linkplain #getHitCount() hit}, {@linkplain #getMissCount() miss},
244
245
* and {@linkplain #getParentContextCount() parent context} counts.
245
246
*/
0 commit comments