From 6a8cf2866523df822bfea38976e6cd8d2c4447a1 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 31 Mar 2014 14:26:05 +0200 Subject: [PATCH] polishing --- .../cache/interceptor/CacheAspectSupport.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spring-context/src/main/java/org/springframework/cache/interceptor/CacheAspectSupport.java b/spring-context/src/main/java/org/springframework/cache/interceptor/CacheAspectSupport.java index 411e9880c96..802fcbda21a 100644 --- a/spring-context/src/main/java/org/springframework/cache/interceptor/CacheAspectSupport.java +++ b/spring-context/src/main/java/org/springframework/cache/interceptor/CacheAspectSupport.java @@ -397,7 +397,8 @@ public abstract class CacheAspectSupport implements InitializingBean, Applicatio if (StringUtils.hasText(operation.getKeyGenerator())) { // TODO: exception mgt? this.operationKeyGenerator = BeanFactoryAnnotationUtils.qualifiedBeanOfType( applicationContext, KeyGenerator.class, operation.getKeyGenerator()); - } else { + } + else { this.operationKeyGenerator = keyGenerator; } if (StringUtils.hasText(operation.getCacheManager())) { @@ -433,7 +434,8 @@ public abstract class CacheAspectSupport implements InitializingBean, Applicatio String unless = ""; if (this.operation instanceof CacheableOperation) { unless = ((CacheableOperation) this.operation).getUnless(); - } else if (this.operation instanceof CachePutOperation) { + } + else if (this.operation instanceof CachePutOperation) { unless = ((CachePutOperation) this.operation).getUnless(); } if (StringUtils.hasText(unless)) {