File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/main/java/org/springframework/data/redis/cache Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ public static class RedisCacheManagerBuilder {
221
221
222
222
private final RedisCacheWriter cacheWriter ;
223
223
private RedisCacheConfiguration defaultCacheConfiguration = RedisCacheConfiguration .defaultCacheConfig ();
224
- private Map <String , RedisCacheConfiguration > intialCaches = new LinkedHashMap <>();
224
+ private final Map <String , RedisCacheConfiguration > intialCaches = new LinkedHashMap <>();
225
225
private boolean enableTransactions ;
226
226
227
227
private RedisCacheManagerBuilder (RedisCacheWriter cacheWriter ) {
@@ -312,10 +312,7 @@ public RedisCacheManagerBuilder withInitialCacheConfigurations(
312
312
cacheConfigurations .forEach ((cacheName , configuration ) -> Assert .notNull (configuration ,
313
313
String .format ("RedisCacheConfiguration for cache %s must not be null!" , cacheName )));
314
314
315
- Map <String , RedisCacheConfiguration > cacheConfigMap = new LinkedHashMap <>(intialCaches );
316
- cacheConfigMap .putAll (cacheConfigurations );
317
-
318
- this .intialCaches = cacheConfigMap ;
315
+ this .intialCaches .putAll (cacheConfigurations );
319
316
320
317
return this ;
321
318
}
You can’t perform that action at this time.
0 commit comments