From ead6644a3b58de949c5ec48df918b36176397d38 Mon Sep 17 00:00:00 2001 From: Peter Keller Date: Tue, 24 May 2022 12:17:45 +0100 Subject: [PATCH] Resolve ambiguous method reference --- .../org/apache/xmlbeans/impl/schema/SchemaTypeSystemImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/xmlbeans/impl/schema/SchemaTypeSystemImpl.java b/src/main/java/org/apache/xmlbeans/impl/schema/SchemaTypeSystemImpl.java index b83bf1f83..69f0edc3a 100644 --- a/src/main/java/org/apache/xmlbeans/impl/schema/SchemaTypeSystemImpl.java +++ b/src/main/java/org/apache/xmlbeans/impl/schema/SchemaTypeSystemImpl.java @@ -472,7 +472,7 @@ private void fixupContainers() { private void assertContainersHelper(Map comp, Function> fun, Function, ? extends Map> fun2) { final Map 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);