From 050beebc740187e4fc5cf7ca8520df69e10196a0 Mon Sep 17 00:00:00 2001 From: John Blum Date: Tue, 23 May 2023 08:46:06 -0700 Subject: [PATCH] Edit and cleanup Javadoc. Resolves #2586 --- .../data/redis/cache/RedisCache.java | 6 ++- .../redis/cache/RedisCacheConfiguration.java | 6 +-- .../data/redis/connection/RedisCommands.java | 16 ++++---- .../connection/RedisConnectionFactory.java | 39 ++++++++++--------- .../data/redis/core/RedisCallback.java | 15 ++++--- .../AbstractConnectionIntegrationTests.java | 35 +++++++++++------ 6 files changed, 71 insertions(+), 46 deletions(-) diff --git a/src/main/java/org/springframework/data/redis/cache/RedisCache.java b/src/main/java/org/springframework/data/redis/cache/RedisCache.java index f6877da44..5c7193b52 100644 --- a/src/main/java/org/springframework/data/redis/cache/RedisCache.java +++ b/src/main/java/org/springframework/data/redis/cache/RedisCache.java @@ -41,7 +41,7 @@ import org.springframework.util.ReflectionUtils; /** * {@link org.springframework.cache.Cache} implementation using for Redis as the underlying store for cache data. - * + *

* Use {@link RedisCacheManager} to create {@link RedisCache} instances. * * @author Christoph Strobl @@ -52,6 +52,7 @@ import org.springframework.util.ReflectionUtils; * @see org.springframework.cache.support.AbstractValueAdaptingCache * @since 2.0 */ +@SuppressWarnings("unused") public class RedisCache extends AbstractValueAdaptingCache { private static final byte[] BINARY_NULL_VALUE = RedisSerializer.java().serialize(NullValue.INSTANCE); @@ -136,7 +137,8 @@ public class RedisCache extends AbstractValueAdaptingCache { } @SuppressWarnings("unchecked") - private synchronized @Nullable T getSynchronized(Object key, Callable valueLoader) { + @Nullable + private synchronized T getSynchronized(Object key, Callable valueLoader) { ValueWrapper result = get(key); diff --git a/src/main/java/org/springframework/data/redis/cache/RedisCacheConfiguration.java b/src/main/java/org/springframework/data/redis/cache/RedisCacheConfiguration.java index 74c73cc28..da9b06215 100644 --- a/src/main/java/org/springframework/data/redis/cache/RedisCacheConfiguration.java +++ b/src/main/java/org/springframework/data/redis/cache/RedisCacheConfiguration.java @@ -33,7 +33,7 @@ import org.springframework.util.Assert; /** * Immutable {@link RedisCacheConfiguration} used to customize {@link RedisCache} behaviour, such as caching * {@literal null} values, computing cache key prefixes and handling binary serialization. - * + *

* Start with {@link RedisCacheConfiguration#defaultCacheConfig()} and customize {@link RedisCache} behaviour * from that point on. * @@ -344,9 +344,9 @@ public class RedisCacheConfiguration { /** * Registers default cache {@link Converter key converters}. - * + *

* The following converters get registered: - * + *

*