From 5e36a705c5350e993acd91aa7e6bb64bf9063f3c Mon Sep 17 00:00:00 2001 From: DingHao Date: Mon, 12 Aug 2024 10:38:33 +0800 Subject: [PATCH] Fix variable targetClassToUse not used Closes gh-15567 --- .../method/PostAuthorizeExpressionAttributeRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/springframework/security/authorization/method/PostAuthorizeExpressionAttributeRegistry.java b/core/src/main/java/org/springframework/security/authorization/method/PostAuthorizeExpressionAttributeRegistry.java index 05f17ee93df..2838d8ed0fb 100644 --- a/core/src/main/java/org/springframework/security/authorization/method/PostAuthorizeExpressionAttributeRegistry.java +++ b/core/src/main/java/org/springframework/security/authorization/method/PostAuthorizeExpressionAttributeRegistry.java @@ -78,7 +78,7 @@ private MethodAuthorizationDeniedHandler resolveHandler(Method method, Class private PostAuthorize findPostAuthorizeAnnotation(Method method, Class targetClass) { Class targetClassToUse = targetClass(method, targetClass); - return this.postAuthorizeSynthesizer.synthesize(method, targetClass); + return this.postAuthorizeSynthesizer.synthesize(method, targetClassToUse); } /**