summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Ross2012-09-12 11:44:46 (EDT)
committer Thomas Watson2012-09-12 16:50:30 (EDT)
commit0db95c7ca2462cbb2949289c4e75360509be233a (patch)
treef95ab2d2d976bf40909e83a2dd3a1f5179123957
parentebc4baf50a61a31204ec3fa8c3ab0f6eb4057b57 (diff)
downloadrt.equinox.framework-0db95c7ca2462cbb2949289c4e75360509be233a.zip
rt.equinox.framework-0db95c7ca2462cbb2949289c4e75360509be233a.tar.gz
rt.equinox.framework-0db95c7ca2462cbb2949289c4e75360509be233a.tar.bz2
Added a couple of TODOs regarding report entries.
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleResolver.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleResolver.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleResolver.java
index b789316..84127c2 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleResolver.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleResolver.java
@@ -502,7 +502,10 @@ final class ModuleResolver {
@Override
public List<Capability> findProviders(Requirement requirement) {
List<ModuleCapability> candidates = moduleDatabase.findCapabilities((ModuleRequirement) requirement);
+ // TODO Record missing capability here if empty? Then record other
+ // entry types later if an existing capability was filtered?
List<Capability> result = filterProviders(requirement, candidates);
+ // TODO Don't record the entry if the requirement is optional?
if (result.isEmpty())
reportBuilder.addEntry(requirement.getResource(), Entry.Type.MISSING_CAPABILITY, requirement);
return result;