-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Short description
Remove cast in ScopeGraphUtils
.
Problem description.
In order to keep Java 11 type inference happy, an cast was inserted in
t -> (Map.Entry<L, Iterable<S>>)new AbstractMap.SimpleImmutableEntry<L, Iterable<S>>(t.getKey().getValue(), t.getValue()), Collectors.toSet()))); |
Describe the solution you'd like
It would be better to fin the correct type bounds, and add those explicitly
Describe alternatives you've considered
Additional context
Not having the cast works in Java 8