Skip to content

Commit dda0942

Browse files
committed
Polishing
1 parent 66ec1c1 commit dda0942

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

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

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222

2323
/**
2424
* {@code ContextCache} defines the SPI for caching Spring
25-
* {@link ApplicationContext ApplicationContexts} within the <em>Spring
26-
* TestContext Framework</em>.
25+
* {@link ApplicationContext ApplicationContexts} within the
26+
* <em>Spring TestContext Framework</em>.
2727
*
2828
* <p>A {@code ContextCache} maintains a cache of {@code ApplicationContexts}
29-
* keyed by {@link MergedContextConfiguration} instances, potentially
30-
* configured with a {@linkplain ContextCacheUtils#retrieveMaxCacheSize
31-
* maximum size} and a custom eviction policy.
29+
* keyed by {@link MergedContextConfiguration} instances, potentially configured
30+
* with a {@linkplain ContextCacheUtils#retrieveMaxCacheSize maximum size} and
31+
* a custom eviction policy.
3232
*
3333
* <h3>Rationale</h3>
3434
* <p>Context caching can have significant performance benefits if context
@@ -50,25 +50,26 @@ public interface ContextCache {
5050
* The name of the logging category used for reporting {@code ContextCache}
5151
* statistics.
5252
*/
53-
public static final String CONTEXT_CACHE_LOGGING_CATEGORY = "org.springframework.test.context.cache";
53+
String CONTEXT_CACHE_LOGGING_CATEGORY = "org.springframework.test.context.cache";
5454

5555
/**
5656
* The default maximum size of the context cache: {@value #DEFAULT_MAX_CONTEXT_CACHE_SIZE}.
57+
* @since 4.3
5758
* @see #MAX_CONTEXT_CACHE_SIZE_PROPERTY_NAME
5859
*/
59-
public static final int DEFAULT_MAX_CONTEXT_CACHE_SIZE = 32;
60+
int DEFAULT_MAX_CONTEXT_CACHE_SIZE = 32;
6061

6162
/**
6263
* System property used to configure the maximum size of the {@link ContextCache}
63-
* as a positive integer.
64-
* <p>May alternatively be configured via
65-
* {@link org.springframework.core.SpringProperties SpringProperties}.
66-
* <p>Note that implementations of {@code ContextCache} are not required
67-
* to support a maximum cache size. Consult the documentation of the
64+
* as a positive integer. May alternatively be configured via the
65+
* {@link org.springframework.core.SpringProperties} mechanism.
66+
* <p>Note that implementations of {@code ContextCache} are not required to
67+
* actually support a maximum cache size. Consult the documentation of the
6868
* corresponding implementation for details.
69+
* @since 4.3
6970
* @see #DEFAULT_MAX_CONTEXT_CACHE_SIZE
7071
*/
71-
public static final String MAX_CONTEXT_CACHE_SIZE_PROPERTY_NAME = "spring.test.context.cache.maxSize";
72+
String MAX_CONTEXT_CACHE_SIZE_PROPERTY_NAME = "spring.test.context.cache.maxSize";
7273

7374

7475
/**

0 commit comments

Comments
 (0)