Skip to content
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

Enhance safety with List.of() method. #32675

Closed
wants to merge 1 commit into from

Conversation

dukbong
Copy link
Contributor

@dukbong dukbong commented Apr 19, 2024

Enhanced code safety by replacing Arrays.asList() with List.of() to create immutable lists

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Apr 19, 2024
@snicoll
Copy link
Member

snicoll commented Apr 19, 2024

Enhanced code safety

The list is not exposed anywhere so I don't understand the argument. Brian already asked you to not submit such PR, which adds maintenance overhead on our side. I'd expect many other case where this change would need to be applied if we were to accept this so this would also add inconsistency to the codebase.

@snicoll snicoll closed this Apr 19, 2024
@snicoll snicoll added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Apr 19, 2024
@dukbong dukbong deleted the enhance branch April 19, 2024 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants