mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-03-01 19:09:08 +00:00
Revert "Work Around SPR-15651"
This reverts commit 6c286696b4663073efeee35aaf414419d96bfb10.
This commit is contained in:
parent
dcef3d6ebb
commit
fb85ad6bd7
@ -22,7 +22,6 @@ import org.aopalliance.intercept.MethodInvocation;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.springframework.aop.framework.AopProxyUtils;
|
||||
import org.springframework.aop.target.EmptyTargetSource;
|
||||
import org.springframework.security.access.ConfigAttribute;
|
||||
|
||||
/**
|
||||
@ -46,7 +45,7 @@ public abstract class AbstractMethodSecurityMetadataSource implements
|
||||
Object target = mi.getThis();
|
||||
Class<?> targetClass = null;
|
||||
|
||||
if (target != null && target != EmptyTargetSource.INSTANCE.getTarget()) {
|
||||
if (target != null) {
|
||||
targetClass = target instanceof Class<?> ? (Class<?>) target
|
||||
: AopProxyUtils.ultimateTargetClass(target);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user