Skip to content

Commit

Permalink
Make Java 11+ type parameter inference happy :)
Browse files Browse the repository at this point in the history
  • Loading branch information
AZWN committed Jul 24, 2023
1 parent 66fdc99 commit bbfba40
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ public static <S, L, D> String toString(IScopeGraph<S, L, D> scopeGraph, Functio
final Map<S, java.util.Set<Map.Entry<L, Iterable<S>>>> groupedScopes = sgEdges.entrySet().stream().collect(
Collectors.groupingBy(
t -> t.getKey().getKey(), Collectors.mapping(
t -> new AbstractMap.SimpleImmutableEntry<>(t.getKey().getValue(), t.getValue()), Collectors.toSet()
t -> {
final Map.Entry<L,Iterable<S>> result = new AbstractMap.SimpleImmutableEntry<>(t.getKey().getValue(), t.getValue());
return result;
}, Collectors.toSet()
)
)
);
Expand Down

0 comments on commit bbfba40

Please sign in to comment.