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

@@ -52,7 +52,7 @@ final class AnnotationAuditingMetadata {
private static final AnnotationFieldFilter LAST_MODIFIED_DATE_FILTER = new AnnotationFieldFilter(
LastModifiedDate.class);
private static final Map<Class<?>, AnnotationAuditingMetadata> METADATA_CACHE = new ConcurrentHashMap<>();
private static final Map<Class<?>, AnnotationAuditingMetadata> metadataCache = new ConcurrentHashMap<>();
public static final boolean IS_JDK_8 = org.springframework.util.ClassUtils.isPresent("java.time.Clock",
AnnotationAuditingMetadata.class.getClassLoader());
@@ -125,7 +125,7 @@ final class AnnotationAuditingMetadata {
* @param type the type to inspect, must not be {@literal null}.
*/
public static AnnotationAuditingMetadata getMetadata(Class<?> type) {
return METADATA_CACHE.computeIfAbsent(type, AnnotationAuditingMetadata::new);
return metadataCache.computeIfAbsent(type, AnnotationAuditingMetadata::new);
}
/**