We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a367569 + 308e408 commit 6dbbe89Copy full SHA for 6dbbe89
web/src/main/java/org/springframework/security/web/authentication/DelegatingAuthenticationConverter.java
@@ -16,7 +16,6 @@
16
17
package org.springframework.security.web.authentication;
18
19
-import java.util.ArrayList;
20
import java.util.List;
21
22
import jakarta.servlet.http.HttpServletRequest;
@@ -38,7 +37,7 @@ public final class DelegatingAuthenticationConverter implements AuthenticationCo
38
37
39
public DelegatingAuthenticationConverter(List<AuthenticationConverter> delegates) {
40
Assert.notEmpty(delegates, "delegates cannot be null");
41
- this.delegates = new ArrayList<>(delegates);
+ this.delegates = List.copyOf(delegates);
42
}
43
44
public DelegatingAuthenticationConverter(AuthenticationConverter... delegates) {
0 commit comments