Skip to content

Commit 6dbbe89

Browse files
committed
Merge remote-tracking branch 'origin/6.3.x'
2 parents a367569 + 308e408 commit 6dbbe89

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web/src/main/java/org/springframework/security/web/authentication/DelegatingAuthenticationConverter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package org.springframework.security.web.authentication;
1818

19-
import java.util.ArrayList;
2019
import java.util.List;
2120

2221
import jakarta.servlet.http.HttpServletRequest;
@@ -38,7 +37,7 @@ 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 = List.copyOf(delegates);
4241
}
4342

4443
public DelegatingAuthenticationConverter(AuthenticationConverter... delegates) {

0 commit comments

Comments
 (0)