Permalink
Browse files

Update generic declaration to correctly define what is known about th…

…e Annotation
  • Loading branch information...
1 parent 881cd65 commit dde26f169b242708329954d9fe1857618a81edd1 @edalquist edalquist committed Sep 16, 2011
View
@@ -6,3 +6,4 @@ target
/.settings
/.project
/.classpath
+/.checkstyle
@@ -24,5 +24,5 @@
* @param cacheKeyInvocationContext Information about the intercepted method invocation
* @return A non-null cache key for the invocation.
*/
- CacheKey generateCacheKey(CacheKeyInvocationContext<Annotation> cacheKeyInvocationContext);
+ CacheKey generateCacheKey(CacheKeyInvocationContext<? extends Annotation> cacheKeyInvocationContext);
}
@@ -28,6 +28,6 @@
* @param cacheInvocationContext The context data for the intercepted method invocation
* @return The {@link Cache} instance to be used by the intercepter
*/
- <K, V> Cache<K, V> resolveCache(CacheInvocationContext<Annotation> cacheInvocationContext);
+ <K, V> Cache<K, V> resolveCache(CacheInvocationContext<? extends Annotation> cacheInvocationContext);
}

0 comments on commit dde26f1

Please sign in to comment.