Skip to content

Commit

Permalink
Resolve ambiguous method reference
Browse files Browse the repository at this point in the history
  • Loading branch information
pkeller committed May 26, 2022
1 parent 23cdb93 commit ead6644
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ private void fixupContainers() {

private void assertContainersHelper(Map<QName, SchemaComponent.Ref> comp, Function<SchemaContainer, List<? extends SchemaComponent>> fun, Function<List<? extends SchemaComponent>, ? extends Map<QName, SchemaComponent.Ref>> fun2) {
final Map<QName, SchemaComponent.Ref> temp = _containers.values().stream()
.map(fun).map(fun2 == null ? SchemaTypeSystemImpl::buildComponentRefMap : fun2)
.map(fun).map(scs -> fun2 == null ? SchemaTypeSystemImpl.buildComponentRefMap(scs) : fun2.apply(scs) )
.map(Map::entrySet).flatMap(Set::stream)
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
assert comp.equals(temp);
Expand Down

0 comments on commit ead6644

Please sign in to comment.