Skip to content

Commit e94974d

Browse files
mp911dechristophstrobl
authored andcommitted
Polishing.
Reformat code. Original Pull Request: #2785
1 parent f9a660c commit e94974d

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/main/java/org/springframework/data/redis/cache/RedisCache.java

+17-17
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ public class RedisCache extends AbstractValueAdaptingCache {
6262

6363
static final byte[] BINARY_NULL_VALUE = RedisSerializer.java().serialize(NullValue.INSTANCE);
6464

65-
static final String CACHE_RETRIEVAL_UNSUPPORTED_OPERATION_EXCEPTION_MESSAGE =
66-
"The Redis driver configured with RedisCache through RedisCacheWriter does not support CompletableFuture-based retrieval";
65+
static final String CACHE_RETRIEVAL_UNSUPPORTED_OPERATION_EXCEPTION_MESSAGE = "The Redis driver configured with RedisCache through RedisCacheWriter does not support CompletableFuture-based retrieval";
6766

6867
private final Lock lock = new ReentrantLock();
6968

@@ -74,16 +73,16 @@ public class RedisCache extends AbstractValueAdaptingCache {
7473
private final String name;
7574

7675
/**
77-
* Create a new {@link RedisCache} with the given {@link String name} and {@link RedisCacheConfiguration},
78-
* using the {@link RedisCacheWriter} to execute Redis commands supporting the cache operations.
76+
* Create a new {@link RedisCache} with the given {@link String name} and {@link RedisCacheConfiguration}, using the
77+
* {@link RedisCacheWriter} to execute Redis commands supporting the cache operations.
7978
*
8079
* @param name {@link String name} for this {@link Cache}; must not be {@literal null}.
81-
* @param cacheWriter {@link RedisCacheWriter} used to perform {@link RedisCache} operations
82-
* by executing the necessary Redis commands; must not be {@literal null}.
83-
* @param cacheConfiguration {@link RedisCacheConfiguration} applied to this {@link RedisCache} on creation;
84-
* must not be {@literal null}.
80+
* @param cacheWriter {@link RedisCacheWriter} used to perform {@link RedisCache} operations by executing the
81+
* necessary Redis commands; must not be {@literal null}.
82+
* @param cacheConfiguration {@link RedisCacheConfiguration} applied to this {@link RedisCache} on creation; must not
83+
* be {@literal null}.
8584
* @throws IllegalArgumentException if either the given {@link RedisCacheWriter} or {@link RedisCacheConfiguration}
86-
* are {@literal null} or the given {@link String} name for this {@link RedisCache} is {@literal null}.
85+
* are {@literal null} or the given {@link String} name for this {@link RedisCache} is {@literal null}.
8786
*/
8887
protected RedisCache(String name, RedisCacheWriter cacheWriter, RedisCacheConfiguration cacheConfiguration) {
8988

@@ -117,11 +116,11 @@ protected RedisCacheWriter getCacheWriter() {
117116
}
118117

119118
/**
120-
* Gets the configured {@link ConversionService} used to convert {@link Object cache keys} to a {@link String}
121-
* when accessing entries in the cache.
119+
* Gets the configured {@link ConversionService} used to convert {@link Object cache keys} to a {@link String} when
120+
* accessing entries in the cache.
122121
*
123-
* @return the configured {@link ConversionService} used to convert {@link Object cache keys} to a {@link String}
124-
* when accessing entries in the cache.
122+
* @return the configured {@link ConversionService} used to convert {@link Object cache keys} to a {@link String} when
123+
* accessing entries in the cache.
125124
* @see RedisCacheConfiguration#getConversionService()
126125
* @see #getCacheConfiguration()
127126
*/
@@ -175,8 +174,8 @@ private <T> T getSynchronized(Object key, Callable<T> valueLoader) {
175174
}
176175

177176
/**
178-
* Loads the {@link Object} using the given {@link Callable valueLoader} and {@link #put(Object, Object) puts}
179-
* the {@link Object loaded value} in the cache.
177+
* Loads the {@link Object} using the given {@link Callable valueLoader} and {@link #put(Object, Object) puts} the
178+
* {@link Object loaded value} in the cache.
180179
*
181180
* @param <T> {@link Class type} of the loaded {@link Object cache value}.
182181
* @param key {@link Object key} mapped to the loaded {@link Object cache value}.
@@ -439,8 +438,9 @@ protected String convertKey(Object key) {
439438
return key.toString();
440439
}
441440

442-
String message = String.format("Cannot convert cache key %s to String; Please register a suitable Converter"
443-
+ " via 'RedisCacheConfiguration.configureKeyConverters(...)' or override '%s.toString()'",
441+
String message = String.format(
442+
"Cannot convert cache key %s to String; Please register a suitable Converter"
443+
+ " via 'RedisCacheConfiguration.configureKeyConverters(...)' or override '%s.toString()'",
444444
source, key.getClass().getName());
445445

446446
throw new IllegalStateException(message);

0 commit comments

Comments
 (0)