Remove SPR-11251 workaround from WebSecurityConfiguration

Fixes gh-3348
This commit is contained in:
Rob Winch 2016-03-09 16:48:24 -06:00
parent be36ddb614
commit 5d6e8bc3c8

View File

@ -206,23 +206,6 @@ public class WebSecurityConfiguration implements ImportAware, BeanClassLoaderAwa
.getAnnotationAttributes(EnableWebSecurity.class.getName());
AnnotationAttributes enableWebSecurityAttrs = AnnotationAttributes
.fromMap(enableWebSecurityAttrMap);
if (enableWebSecurityAttrs == null) {
// search parent classes
Class<?> currentClass = ClassUtils.resolveClassName(
importMetadata.getClassName(), beanClassLoader);
for (Class<?> classToInspect = currentClass; classToInspect != null; classToInspect = classToInspect
.getSuperclass()) {
EnableWebSecurity enableWebSecurityAnnotation = AnnotationUtils
.findAnnotation(classToInspect, EnableWebSecurity.class);
if (enableWebSecurityAnnotation == null) {
continue;
}
enableWebSecurityAttrMap = AnnotationUtils
.getAnnotationAttributes(enableWebSecurityAnnotation);
enableWebSecurityAttrs = AnnotationAttributes
.fromMap(enableWebSecurityAttrMap);
}
}
debugEnabled = enableWebSecurityAttrs.getBoolean("debug");
if (webSecurity != null) {
webSecurity.debug(debugEnabled);