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

List was already unmodifiable #487

Merged
merged 1 commit into from
Feb 25, 2024

Conversation

njr-11
Copy link
Contributor

@njr-11 njr-11 commented Feb 24, 2024

Wrapping with an unmodifiable list is unnecessary because the list is already guaranteed to be unmodifiable given that it comes from List.of(...). It looks like the code was lacking the necessary comments to make that clear, so I have added those in as well.

@njr-11 njr-11 added this to the Jakarta Data 1.0 milestone Feb 24, 2024
@otaviojava otaviojava merged commit 535d0ee into jakartaee:main Feb 25, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants