DATACMNS-1755 - Rename uppercase 'CACHE' static finals.

Rename static final `CACHE` members to use the lowercase form. Although
the caches are static final, they are not constant values.

Original pull request: #448.
This commit is contained in:
Phillip Webb
2020-06-09 08:54:45 -07:00
committed by Mark Paluch
parent df5f42ce29
commit cb8443e299
10 changed files with 24 additions and 24 deletions

View File

@@ -35,7 +35,7 @@ import org.springframework.util.ClassUtils;
*/
public class SimpleTypeInformationMapper implements TypeInformationMapper {
private final Map<String, Optional<ClassTypeInformation<?>>> CACHE = new ConcurrentHashMap<>();
private final Map<String, Optional<ClassTypeInformation<?>>> cache = new ConcurrentHashMap<>();
/**
* Returns the {@link TypeInformation} that shall be used when the given {@link String} value is found as type hint.
@@ -53,7 +53,7 @@ public class SimpleTypeInformationMapper implements TypeInformationMapper {
String stringAlias = alias.mapTyped(String.class);
if (stringAlias != null) {
return CACHE.computeIfAbsent(stringAlias, SimpleTypeInformationMapper::loadClass).orElse(null);
return cache.computeIfAbsent(stringAlias, SimpleTypeInformationMapper::loadClass).orElse(null);
}
return null;