Skip to content

Commit

Permalink
Merge pull request #1210 from mebigfatguy/master
Browse files Browse the repository at this point in the history
no need to fetch the method's parameter annotations, if there aren't any
  • Loading branch information
mattrjacobs committed May 23, 2016
2 parents 7d3afbf + fe962df commit bf56d90
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -59,9 +59,9 @@ public CacheInvocationContext(A cacheAnnotation, MethodExecutionAction cacheKeyM
this.cacheKeyMethod = cacheKeyMethod;
this.cacheAnnotation = cacheAnnotation;
Class<?>[] parametersTypes = method.getParameterTypes();
Annotation[][] parametersAnnotations = method.getParameterAnnotations();
int parameterCount = parametersTypes.length;
if (parameterCount > 0) {
Annotation[][] parametersAnnotations = method.getParameterAnnotations();
ImmutableList.Builder<CacheInvocationParameter> parametersBuilder = ImmutableList.builder();
for (int pos = 0; pos < parameterCount; pos++) {
Class<?> paramType = parametersTypes[pos];
Expand Down

0 comments on commit bf56d90

Please sign in to comment.