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

Replace 'Arrays.asList' for single element lists #6388

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

solth
Copy link
Member

@solth solth commented Jan 29, 2025

This pull request resolves some performance related code issues by replacing calls to Arrays.asList() with only one argument by either Collections.singletonList() or List.of(), depending on whether the resulting list should be immutable or not.

@solth solth changed the title Replace 'Arrays.asList' for single element lists with appr Replace 'Arrays.asList' for single element lists Jan 29, 2025
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.

1 participant