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

Use Stream.toList directly #2844

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Use Stream.toList directly #2844

merged 1 commit into from
Nov 14, 2024

Conversation

afs
Copy link
Member

@afs afs commented Nov 14, 2024

Clean-up.

Replaces Stream.collect(Collectors.toList()) with Stream.toList() (which is immutable).


By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the Contributor's Agreement.

@afs afs added the task Task label Nov 14, 2024
@afs afs self-assigned this Nov 14, 2024
@afs afs merged commit bf723b6 into apache:main Nov 14, 2024
4 checks passed
@afs afs deleted the stream-tolist branch November 14, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants