File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
web/src/main/java/org/springframework/security/web/authentication Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1616
1717package org .springframework .security .web .authentication ;
1818
19- import java .util .ArrayList ;
2019import java .util .List ;
2120
2221import jakarta .servlet .http .HttpServletRequest ;
@@ -38,12 +37,11 @@ public final class DelegatingAuthenticationConverter implements AuthenticationCo
3837
3938 public DelegatingAuthenticationConverter (List <AuthenticationConverter > delegates ) {
4039 Assert .notEmpty (delegates , "delegates cannot be null" );
41- this .delegates = new ArrayList <>( delegates ) ;
40+ this .delegates = delegates ;
4241 }
4342
4443 public DelegatingAuthenticationConverter (AuthenticationConverter ... delegates ) {
45- Assert .notEmpty (delegates , "delegates cannot be null" );
46- this .delegates = List .of (delegates );
44+ this (List .of (delegates ));
4745 }
4846
4947 @ Override
You can’t perform that action at this time.
0 commit comments