-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Align DelegatingAuthenticationConverter Constructors #15949
Conversation
.../java/org/springframework/security/web/authentication/DelegatingAuthenticationConverter.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kse-music, thanks for this improvement. Please see my inline feedback.
Also, since the constructors demonstrate different behavior, I think this is a bug and should be fixed in 6.3.x
as well. Are you able to rebase this change to 6.3.x
please?
.../java/org/springframework/security/web/authentication/DelegatingAuthenticationConverter.java
Outdated
Show resolved
Hide resolved
Also, @kse-music, I updated the PR title and description to reflect some of the API benefits to this change. |
Thanks a lot, @jzheaux. Everything is done as you expected. |
Thanks, @kse-music! This is now merged into |
This change is valuable since
new ArrayList<>()
andList.of
have different behaviors, meaning that these two constructors give two different object states without saying so.This PR aligns the two constructors.