diff --git a/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/builder/BaseApiAnalyzer.java b/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/builder/BaseApiAnalyzer.java index c26265d2c5..6ccc886834 100644 --- a/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/builder/BaseApiAnalyzer.java +++ b/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/builder/BaseApiAnalyzer.java @@ -2301,10 +2301,10 @@ private void checkApiComponentPackageVersions(BundleComponent referenceBundle, B IDelta[] breakingChanges, IDelta[] compatibleChanges) throws CoreException { Map referencePackages = Arrays .stream(referenceBundle.getBundleDescription().getExportPackages()) - .collect(Collectors.toMap(ExportPackageDescription::getName, Function.identity())); + .collect(Collectors.toMap(ExportPackageDescription::getName, Function.identity(), (a, b) -> a)); Map componentPackages = Arrays .stream(componentBundle.getBundleDescription().getExportPackages()) - .collect(Collectors.toMap(ExportPackageDescription::getName, Function.identity())); + .collect(Collectors.toMap(ExportPackageDescription::getName, Function.identity(), (a, b) -> a)); // a mapping between a package name and a required change Map requiredChanges = new HashMap<>(); // we must compare compatible changes first, so these where overwritten later by