Skip to content

Use Stream.toList() instead of Collectors.toList()#57

Merged
nlativy merged 1 commit into
masterfrom
use-stream-tolist
Apr 27, 2026
Merged

Use Stream.toList() instead of Collectors.toList()#57
nlativy merged 1 commit into
masterfrom
use-stream-tolist

Conversation

@nlativy
Copy link
Copy Markdown
Collaborator

@nlativy nlativy commented Apr 27, 2026

Summary

  • Stream.toList() (Java 16+) returns an immutable list, which is what the TestEnvironment constructor wants — it only iterates the result.
  • Drops the now-unused Collectors import.

Test plan

  • mvn clean test — all 43 tests pass

Stream.toList() (Java 16+) returns an immutable List, which is what
the TestEnvironment constructor wants — it only iterates the result.
Lets us drop the Collectors import.
@nlativy nlativy merged commit ba9d8e3 into master Apr 27, 2026
3 checks passed
@nlativy nlativy deleted the use-stream-tolist branch April 27, 2026 20:23
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