Skip to content

Commit dd97dee

Browse files
committed
Polish
1 parent eb3982b commit dd97dee

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

spring-context-support/src/main/java/org/springframework/cache/caffeine/CaffeineCacheManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public void setAsyncCacheLoader(AsyncCacheLoader<Object, Object> cacheLoader) {
193193
* Set the common cache type that this cache manager builds to async.
194194
* This applies to {@link #setCacheNames} as well as on-demand caches.
195195
* <p>Individual cache registrations (such as {@link #registerCustomCache(String, AsyncCache)}
196-
* and {@link #registerCustomCache(String, com.github.benmanes.caffeine.cache.Cache)}
196+
* and {@link #registerCustomCache(String, com.github.benmanes.caffeine.cache.Cache)})
197197
* are not dependent on this setting.
198198
* <p>By default, this cache manager builds regular native Caffeine caches.
199199
* To switch to async caches which can also be used through the synchronous API
@@ -322,7 +322,7 @@ protected Cache adaptCaffeineCache(String name, AsyncCache<Object, Object> cache
322322
* Build a common {@link CaffeineCache} instance for the specified cache name,
323323
* using the common Caffeine configuration specified on this cache manager.
324324
* <p>Delegates to {@link #adaptCaffeineCache} as the adaptation method to
325-
* Spring's cache abstraction (allowing for centralized decoration etc),
325+
* Spring's cache abstraction (allowing for centralized decoration etc.),
326326
* passing in a freshly built native Caffeine Cache instance.
327327
* @param name the name of the cache
328328
* @return the Spring CaffeineCache adapter (or a decorator thereof)

spring-context-support/src/main/java/org/springframework/cache/jcache/interceptor/CachePutOperation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -102,7 +102,7 @@ private static CacheParameterDetail initializeValueParameterDetail(
102102
result = parameter;
103103
}
104104
else {
105-
throw new IllegalArgumentException("More than one @CacheValue found on " + method + "");
105+
throw new IllegalArgumentException("More than one @CacheValue found on " + method);
106106
}
107107
}
108108
}

spring-context-support/src/main/java/org/springframework/cache/jcache/interceptor/CacheResultInterceptor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -146,7 +146,6 @@ private static CacheOperationInvoker.ThrowableWrapper rewriteCallStack(
146146
return new CacheOperationInvoker.ThrowableWrapper(clone);
147147
}
148148

149-
@SuppressWarnings("unchecked")
150149
@Nullable
151150
private static <T extends Throwable> T cloneException(T exception) {
152151
try {

spring-context-support/src/main/java/org/springframework/cache/jcache/interceptor/DefaultJCacheOperationSource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -232,7 +232,7 @@ protected KeyGenerator getDefaultKeyGenerator() {
232232
* Only resolve the default exception cache resolver when an exception needs to be handled.
233233
* <p>A non-JSR-107 setup requires either a {@link CacheManager} or a {@link CacheResolver}.
234234
* If only the latter is specified, it is not possible to extract a default exception
235-
* {@code CacheResolver} from a custom {@code CacheResolver} implementation so we have to
235+
* {@code CacheResolver} from a custom {@code CacheResolver} implementation, so we have to
236236
* fall back on the {@code CacheManager}.
237237
* <p>This gives this weird situation of a perfectly valid configuration that breaks all
238238
* of a sudden because the JCache support is enabled. To avoid this we resolve the default

0 commit comments

Comments
 (0)