Removed more .streams() with our filterAndMap code by bbakerman · Pull Request #4044 · graphql-java/graphql-java

Conversation

@bbakerman

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

.collect(Collectors.toList());

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

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

@github-actions

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 deleted the remove-more-streams branch

July 10, 2025 00:51

2 participants

@bbakerman @dondonz