Rename local var to enableRedisHttpSessionAnnotation

From enableWebSecurityAnnotation to enableRedisHttpSessionAnnotation.

Fixes gh-194
This commit is contained in:
Rob Winch
2015-07-25 07:44:21 -05:00
parent 1266fd052e
commit 9724953b2f

View File

@@ -125,12 +125,12 @@ public class RedisHttpSessionConfiguration implements ImportAware, BeanClassLoad
// search parent classes
Class<?> currentClass = ClassUtils.resolveClassName(importMetadata.getClassName(), beanClassLoader);
for(Class<?> classToInspect = currentClass ;classToInspect != null; classToInspect = classToInspect.getSuperclass()) {
EnableRedisHttpSession enableWebSecurityAnnotation = AnnotationUtils.findAnnotation(classToInspect, EnableRedisHttpSession.class);
if(enableWebSecurityAnnotation == null) {
EnableRedisHttpSession enableRedisHttpSessionAnnotation = AnnotationUtils.findAnnotation(classToInspect, EnableRedisHttpSession.class);
if(enableRedisHttpSessionAnnotation == null) {
continue;
}
enableAttrMap = AnnotationUtils
.getAnnotationAttributes(enableWebSecurityAnnotation);
.getAnnotationAttributes(enableRedisHttpSessionAnnotation);
enableAttrs = AnnotationAttributes.fromMap(enableAttrMap);
}
}