From 1118b0ec63b87de00957f5a86bab499c9518d3f7 Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Tue, 20 Aug 2024 17:23:10 -0600 Subject: [PATCH] Defer Sorting AuthorizationAdvisors in addAdvisor Issue gh-15658 --- .../authorization/method/AuthorizationAdvisorProxyFactory.java | 1 - 1 file changed, 1 deletion(-) diff --git a/core/src/main/java/org/springframework/security/authorization/method/AuthorizationAdvisorProxyFactory.java b/core/src/main/java/org/springframework/security/authorization/method/AuthorizationAdvisorProxyFactory.java index 52083fd45a..8ab87a8c4d 100644 --- a/core/src/main/java/org/springframework/security/authorization/method/AuthorizationAdvisorProxyFactory.java +++ b/core/src/main/java/org/springframework/security/authorization/method/AuthorizationAdvisorProxyFactory.java @@ -214,7 +214,6 @@ public final class AuthorizationAdvisorProxyFactory */ public void addAdvisor(AuthorizationAdvisor advisor) { this.advisors.add(advisor); - AnnotationAwareOrderComparator.sort(this.advisors); } /**