More robust multiexpression filtering (#206)

This commit is contained in:
Michael Barry
2022-05-04 20:30:47 -04:00
committed by GitHub
parent b790ad8cd6
commit a70a507e47

View File

@@ -116,7 +116,7 @@ public class BasemapProfile extends ForwardingProfile {
}) })
.toList(); .toList();
return new RowDispatch(constructor.create(), handlers); return new RowDispatch(constructor.create(), handlers);
}).simplify().index(); }).simplify().indexAndWarn();
wikidataMappings = Tables.MAPPINGS wikidataMappings = Tables.MAPPINGS
.mapResults(constructor -> handlerMap.getOrDefault(constructor.rowClass(), List.of()).stream() .mapResults(constructor -> handlerMap.getOrDefault(constructor.rowClass(), List.of()).stream()
.anyMatch(handler -> !IgnoreWikidata.class.isAssignableFrom(handler.handlerClass())) .anyMatch(handler -> !IgnoreWikidata.class.isAssignableFrom(handler.handlerClass()))