From 86fabb266a3e827f24346b9aaa5eeb0007755fba Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Mon, 28 May 2012 01:07:31 +0200 Subject: [PATCH] Polish CacheOperationSource --- .../interceptor/CacheOperationSource.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/spring-context/src/main/java/org/springframework/cache/interceptor/CacheOperationSource.java b/spring-context/src/main/java/org/springframework/cache/interceptor/CacheOperationSource.java index 1e19b025ba..376d2a1647 100644 --- a/spring-context/src/main/java/org/springframework/cache/interceptor/CacheOperationSource.java +++ b/spring-context/src/main/java/org/springframework/cache/interceptor/CacheOperationSource.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2011 the original author or authors. + * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,9 +20,9 @@ import java.lang.reflect.Method; import java.util.Collection; /** - * Interface used by CacheInterceptor. Implementations know - * how to source cache operation attributes, whether from configuration, - * metadata attributes at source level, or anywhere else. + * Interface used by {@link CacheInterceptor}. Implementations know how to source + * cache operation attributes, whether from configuration, metadata attributes at + * source level, or elsewhere. * * @author Costin Leau * @since 3.1 @@ -30,13 +30,12 @@ import java.util.Collection; public interface CacheOperationSource { /** - * Return the collection of cache operations for this method, - * or {@code null} if the method contains no "cacheable" annotations. + * Return the collection of cache operations for this method, or {@code null} + * if the method contains no cacheable annotations. * @param method the method to introspect - * @param targetClass the target class (may be {@code null}, - * in which case the declaring class of the method must be used) - * @return all cache operations for this method, or {@code null} if - * none found + * @param targetClass the target class (may be {@code null}, in which case + * the declaring class of the method must be used) + * @return all cache operations for this method, or {@code null} if none found */ Collection getCacheOperations(Method method, Class targetClass);