From f8bfe19a9817ef3108ea39d142b13f60a6cf9c39 Mon Sep 17 00:00:00 2001 From: novotnyr Date: Tue, 16 Aug 2016 15:39:49 +0200 Subject: [PATCH] Fix typo in autowiring warning (#4026) Fixes a misleading message that warns about PermissionEvaluator when MethodSecurityExpressionHandler should be mentioned instead. Fixes gh-3402 --- .../configuration/GlobalMethodSecurityConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/src/main/java/org/springframework/security/config/annotation/method/configuration/GlobalMethodSecurityConfiguration.java b/config/src/main/java/org/springframework/security/config/annotation/method/configuration/GlobalMethodSecurityConfiguration.java index eaf3a8c2df..dcf5da7225 100644 --- a/config/src/main/java/org/springframework/security/config/annotation/method/configuration/GlobalMethodSecurityConfiguration.java +++ b/config/src/main/java/org/springframework/security/config/annotation/method/configuration/GlobalMethodSecurityConfiguration.java @@ -400,7 +400,7 @@ public class GlobalMethodSecurityConfiguration public void setMethodSecurityExpressionHandler( List handlers) { if (handlers.size() != 1) { - logger.debug("Not autwiring PermissionEvaluator since size != 1. Got " + logger.debug("Not autowiring MethodSecurityExpressionHandler since size != 1. Got " + handlers); return; } @@ -449,4 +449,4 @@ public class GlobalMethodSecurityConfiguration } return this.enableMethodSecurity; } -} \ No newline at end of file +}