@@ -65,8 +65,8 @@ public class RedisCacheManager extends AbstractTransactionSupportingCacheManager
65
65
private RedisCacheManager (RedisCacheWriter cacheWriter , RedisCacheConfiguration defaultCacheConfiguration ,
66
66
boolean allowInFlightCacheCreation ) {
67
67
68
- Assert .notNull (cacheWriter , "CacheWriter must not be null! " );
69
- Assert .notNull (defaultCacheConfiguration , "DefaultCacheConfiguration must not be null! " );
68
+ Assert .notNull (cacheWriter , "CacheWriter must not be null" );
69
+ Assert .notNull (defaultCacheConfiguration , "DefaultCacheConfiguration must not be null" );
70
70
71
71
this .cacheWriter = cacheWriter ;
72
72
this .defaultCacheConfig = defaultCacheConfiguration ;
@@ -159,7 +159,7 @@ public RedisCacheManager(RedisCacheWriter cacheWriter, RedisCacheConfiguration d
159
159
160
160
this (cacheWriter , defaultCacheConfiguration , allowInFlightCacheCreation );
161
161
162
- Assert .notNull (initialCacheConfigurations , "InitialCacheConfigurations must not be null! " );
162
+ Assert .notNull (initialCacheConfigurations , "InitialCacheConfigurations must not be null" );
163
163
164
164
this .initialCacheConfiguration .putAll (initialCacheConfigurations );
165
165
}
@@ -186,7 +186,7 @@ public RedisCacheManager(RedisCacheWriter cacheWriter, RedisCacheConfiguration d
186
186
*/
187
187
public static RedisCacheManager create (RedisConnectionFactory connectionFactory ) {
188
188
189
- Assert .notNull (connectionFactory , "ConnectionFactory must not be null! " );
189
+ Assert .notNull (connectionFactory , "ConnectionFactory must not be null" );
190
190
191
191
return new RedisCacheManager (RedisCacheWriter .nonLockingRedisCacheWriter (connectionFactory ),
192
192
RedisCacheConfiguration .defaultCacheConfig ());
@@ -210,7 +210,7 @@ public static RedisCacheManagerBuilder builder() {
210
210
*/
211
211
public static RedisCacheManagerBuilder builder (RedisConnectionFactory connectionFactory ) {
212
212
213
- Assert .notNull (connectionFactory , "ConnectionFactory must not be null! " );
213
+ Assert .notNull (connectionFactory , "ConnectionFactory must not be null" );
214
214
215
215
return RedisCacheManagerBuilder .fromConnectionFactory (connectionFactory );
216
216
}
@@ -223,7 +223,7 @@ public static RedisCacheManagerBuilder builder(RedisConnectionFactory connection
223
223
*/
224
224
public static RedisCacheManagerBuilder builder (RedisCacheWriter cacheWriter ) {
225
225
226
- Assert .notNull (cacheWriter , "CacheWriter must not be null! " );
226
+ Assert .notNull (cacheWriter , "CacheWriter must not be null" );
227
227
228
228
return RedisCacheManagerBuilder .fromCacheWriter (cacheWriter );
229
229
}
@@ -303,7 +303,7 @@ private RedisCacheManagerBuilder(RedisCacheWriter cacheWriter) {
303
303
*/
304
304
public static RedisCacheManagerBuilder fromConnectionFactory (RedisConnectionFactory connectionFactory ) {
305
305
306
- Assert .notNull (connectionFactory , "ConnectionFactory must not be null! " );
306
+ Assert .notNull (connectionFactory , "ConnectionFactory must not be null" );
307
307
308
308
return new RedisCacheManagerBuilder (RedisCacheWriter .nonLockingRedisCacheWriter (connectionFactory ));
309
309
}
@@ -316,7 +316,7 @@ public static RedisCacheManagerBuilder fromConnectionFactory(RedisConnectionFact
316
316
*/
317
317
public static RedisCacheManagerBuilder fromCacheWriter (RedisCacheWriter cacheWriter ) {
318
318
319
- Assert .notNull (cacheWriter , "CacheWriter must not be null! " );
319
+ Assert .notNull (cacheWriter , "CacheWriter must not be null" );
320
320
321
321
return new RedisCacheManagerBuilder (cacheWriter );
322
322
}
@@ -329,7 +329,7 @@ public static RedisCacheManagerBuilder fromCacheWriter(RedisCacheWriter cacheWri
329
329
*/
330
330
public RedisCacheManagerBuilder cacheDefaults (RedisCacheConfiguration defaultCacheConfiguration ) {
331
331
332
- Assert .notNull (defaultCacheConfiguration , "DefaultCacheConfiguration must not be null! " );
332
+ Assert .notNull (defaultCacheConfiguration , "DefaultCacheConfiguration must not be null" );
333
333
334
334
this .defaultCacheConfiguration = defaultCacheConfiguration ;
335
335
@@ -345,7 +345,7 @@ public RedisCacheManagerBuilder cacheDefaults(RedisCacheConfiguration defaultCac
345
345
*/
346
346
public RedisCacheManagerBuilder cacheWriter (RedisCacheWriter cacheWriter ) {
347
347
348
- Assert .notNull (cacheWriter , "CacheWriter must not be null! " );
348
+ Assert .notNull (cacheWriter , "CacheWriter must not be null" );
349
349
350
350
this .cacheWriter = cacheWriter ;
351
351
@@ -374,7 +374,7 @@ public RedisCacheManagerBuilder transactionAware() {
374
374
*/
375
375
public RedisCacheManagerBuilder initialCacheNames (Set <String > cacheNames ) {
376
376
377
- Assert .notNull (cacheNames , "CacheNames must not be null! " );
377
+ Assert .notNull (cacheNames , "CacheNames must not be null" );
378
378
379
379
cacheNames .forEach (it -> withCacheConfiguration (it , defaultCacheConfiguration ));
380
380
return this ;
@@ -389,9 +389,9 @@ public RedisCacheManagerBuilder initialCacheNames(Set<String> cacheNames) {
389
389
public RedisCacheManagerBuilder withInitialCacheConfigurations (
390
390
Map <String , RedisCacheConfiguration > cacheConfigurations ) {
391
391
392
- Assert .notNull (cacheConfigurations , "CacheConfigurations must not be null! " );
392
+ Assert .notNull (cacheConfigurations , "CacheConfigurations must not be null" );
393
393
cacheConfigurations .forEach ((cacheName , configuration ) -> Assert .notNull (configuration ,
394
- String .format ("RedisCacheConfiguration for cache %s must not be null! " , cacheName )));
394
+ String .format ("RedisCacheConfiguration for cache %s must not be null" , cacheName )));
395
395
396
396
this .initialCaches .putAll (cacheConfigurations );
397
397
return this ;
@@ -406,8 +406,8 @@ public RedisCacheManagerBuilder withInitialCacheConfigurations(
406
406
public RedisCacheManagerBuilder withCacheConfiguration (String cacheName ,
407
407
RedisCacheConfiguration cacheConfiguration ) {
408
408
409
- Assert .notNull (cacheName , "CacheName must not be null! " );
410
- Assert .notNull (cacheConfiguration , "CacheConfiguration must not be null! " );
409
+ Assert .notNull (cacheName , "CacheName must not be null" );
410
+ Assert .notNull (cacheConfiguration , "CacheConfiguration must not be null" );
411
411
412
412
this .initialCaches .put (cacheName , cacheConfiguration );
413
413
return this ;
@@ -469,7 +469,7 @@ public RedisCacheManagerBuilder enableStatistics() {
469
469
public RedisCacheManager build () {
470
470
471
471
Assert .state (cacheWriter != null ,
472
- "CacheWriter must not be null! You can provide one via 'RedisCacheManagerBuilder#cacheWriter(RedisCacheWriter)'. " );
472
+ "CacheWriter must not be null You can provide one via 'RedisCacheManagerBuilder#cacheWriter(RedisCacheWriter)'" );
473
473
474
474
RedisCacheWriter theCacheWriter = cacheWriter ;
475
475
0 commit comments