Skip to content

Cast in ScopeGraphUtils #106

@AZWN

Description

@AZWN

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions