other .getAllChecks() .forEach( (k, v) -> { BugCheckerInfo existing = combinedAllChecks.putIfAbsent(k, v);
private void validateSubcomponentMethods( ValidationReport.Builder<?> report, ComponentDescriptor componentDescriptor, ImmutableMap<TypeElement, TypeElement> existingModuleToOwners) { componentDescriptor .childComponentsDeclaredByFactoryMethods() .forEach( (method, childComponent) -> { if (childComponent.hasCreator()) { report.addError( "Components may not have factory methods for subcomponents that define a " + "builder.", method.methodElement()); } else { validateFactoryMethodParameters(report, method, existingModuleToOwners); } validateSubcomponentMethods( report, childComponent, new ImmutableMap.Builder<TypeElement, TypeElement>() .putAll(existingModuleToOwners) .putAll( Maps.toMap( Sets.difference( childComponent.moduleTypes(), existingModuleToOwners.keySet()), constant(childComponent.typeElement()))) .build()); }); }
other .getAllChecks() .forEach( (k, v) -> { BugCheckerInfo existing = combinedAllChecks.putIfAbsent(k, v);
.forEach( (builderEntryPoint, childComponent) -> { if (!componentDescriptor