Skip to content

Removed more .streams() with our filterAndMap code #4044

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

Merged
merged 1 commit into from
Jul 10, 2025

Conversation

bbakerman
Copy link
Member

Die .stream() die

We still have some left but they tend to be .findFirst() or flatMap and hence harder to replace in a straight forward manner

@bbakerman bbakerman added this to the 25.x breaking changes milestone Jul 8, 2025
.collect(Collectors.toList());

List<String> names = ImmutableKit.map(directiveDefinition.getDirectiveLocations(),
it -> it.getName().toUpperCase());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The above is a double map - can be combined into one

Copy link
Contributor

github-actions bot commented Jul 8, 2025

Test Results

  323 files    323 suites   2m 53s ⏱️
4 933 tests 4 923 ✅ 10 💤 0 ❌
5 022 runs  5 012 ✅ 10 💤 0 ❌

Results for commit b0e520b.

@dondonz dondonz merged commit cc11107 into master Jul 10, 2025
2 checks passed
@dondonz dondonz deleted the remove-more-streams branch July 10, 2025 00:51
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.

2 participants