Skip to content

Commit b1e8ed1

Browse files
committed
Polishing
1 parent 0d37209 commit b1e8ed1

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

spring-context/src/main/java/org/springframework/cache/CacheManager.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ public interface CacheManager {
3333

3434
/**
3535
* Get the cache associated with the given name.
36-
* <p>Note that the cache may be created at runtime if the native provider
37-
* supports it.
36+
* <p>Note that the cache may be lazily created at runtime if the
37+
* native provider supports it.
3838
* @param name the cache identifier (must not be {@code null})
39-
* @return the associated cache, or {@code null} if such a cache does not
40-
* exist or could be not created
39+
* @return the associated cache, or {@code null} if such a cache
40+
* does not exist or could be not created
4141
*/
4242
@Nullable
4343
Cache getCache(String name);

spring-context/src/main/java/org/springframework/cache/support/AbstractCacheManager.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -174,15 +174,15 @@ protected Cache decorateCache(Cache cache) {
174174
}
175175

176176
/**
177-
* Return a missing cache with the specified {@code name} or {@code null} if
178-
* such cache does not exist or could not be created on the fly.
179-
* <p>Some caches may be created at runtime if the native provider supports
180-
* it. If a lookup by name does not yield any result, a subclass gets a chance
181-
* to register such a cache at runtime. The returned cache will be automatically
182-
* added to this instance.
177+
* Return a missing cache with the specified {@code name}, or {@code null} if
178+
* such a cache does not exist or could not be created on demand.
179+
* <p>Caches may be lazily created at runtime if the native provider supports it.
180+
* If a lookup by name does not yield any result, an {@code AbstractCacheManager}
181+
* subclass gets a chance to register such a cache at runtime. The returned cache
182+
* will be automatically added to this cache manager.
183183
* @param name the name of the cache to retrieve
184-
* @return the missing cache or {@code null} if no such cache exists or could be
185-
* created
184+
* @return the missing cache, or {@code null} if no such cache exists or could be
185+
* created on demand
186186
* @since 4.1
187187
* @see #getCache(String)
188188
*/

spring-context/src/main/java/org/springframework/context/MessageSource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public interface MessageSource {
4141

4242
/**
4343
* Try to resolve the message. Return default message if no message was found.
44-
* @param code the code to lookup up, e.g. 'calculator.noRateSet'.
44+
* @param code the message code to look up, e.g. 'calculator.noRateSet'.
4545
* MessageSource users are encouraged to base message names on qualified class
4646
* or package names, avoiding potential conflicts and ensuring maximum clarity.
4747
* @param args an array of arguments that will be filled in for params within
@@ -59,7 +59,7 @@ public interface MessageSource {
5959

6060
/**
6161
* Try to resolve the message. Treat as an error if the message can't be found.
62-
* @param code the code to lookup up, e.g. 'calculator.noRateSet'.
62+
* @param code the message code to look up, e.g. 'calculator.noRateSet'.
6363
* MessageSource users are encouraged to base message names on qualified class
6464
* or package names, avoiding potential conflicts and ensuring maximum clarity.
6565
* @param args an array of arguments that will be filled in for params within

0 commit comments

Comments
 (0)