Skip to content

Commit

Permalink
Polish DelegatingAuthenticationConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
kse-music authored and jzheaux committed Oct 25, 2024
1 parent 5048a68 commit 308e408
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package org.springframework.security.web.authentication;

import java.util.ArrayList;
import java.util.List;

import jakarta.servlet.http.HttpServletRequest;
Expand All @@ -38,7 +37,7 @@ public final class DelegatingAuthenticationConverter implements AuthenticationCo

public DelegatingAuthenticationConverter(List<AuthenticationConverter> delegates) {
Assert.notEmpty(delegates, "delegates cannot be null");
this.delegates = new ArrayList<>(delegates);
this.delegates = List.copyOf(delegates);
}

public DelegatingAuthenticationConverter(AuthenticationConverter... delegates) {
Expand Down

0 comments on commit 308e408

Please sign in to comment.