mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-23 12:32:13 +00:00
Polish DelegatingAuthenticationConverter
This commit is contained in:
parent
5048a68ab7
commit
308e408b13
@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
package org.springframework.security.web.authentication;
|
package org.springframework.security.web.authentication;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import jakarta.servlet.http.HttpServletRequest;
|
import jakarta.servlet.http.HttpServletRequest;
|
||||||
@ -38,7 +37,7 @@ public final class DelegatingAuthenticationConverter implements AuthenticationCo
|
|||||||
|
|
||||||
public DelegatingAuthenticationConverter(List<AuthenticationConverter> delegates) {
|
public DelegatingAuthenticationConverter(List<AuthenticationConverter> delegates) {
|
||||||
Assert.notEmpty(delegates, "delegates cannot be null");
|
Assert.notEmpty(delegates, "delegates cannot be null");
|
||||||
this.delegates = new ArrayList<>(delegates);
|
this.delegates = List.copyOf(delegates);
|
||||||
}
|
}
|
||||||
|
|
||||||
public DelegatingAuthenticationConverter(AuthenticationConverter... delegates) {
|
public DelegatingAuthenticationConverter(AuthenticationConverter... delegates) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user