Explorar o código

SEC-1465: Change empty check to a null check for list of delegates for DelegatingMethodSecurityMetadataSource.

Luke Taylor %!s(int64=15) %!d(string=hai) anos
pai
achega
3c3aabf5be

+ 1 - 1
core/src/main/java/org/springframework/security/access/method/DelegatingMethodSecurityMetadataSource.java

@@ -30,7 +30,7 @@ public final class DelegatingMethodSecurityMetadataSource extends AbstractMethod
     //~ Constructor ====================================================================================================
 
     public DelegatingMethodSecurityMetadataSource(List<MethodSecurityMetadataSource> methodSecurityMetadataSources) {
-        Assert.notEmpty(methodSecurityMetadataSources, "MethodSecurityMetadataSources cannot be null or empty");
+        Assert.notNull(methodSecurityMetadataSources, "MethodSecurityMetadataSources cannot be null");
         this.methodSecurityMetadataSources = methodSecurityMetadataSources;
     }