Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2010-05-07 15:29:57 +0000
committerPascal Rapicault2010-05-07 15:29:57 +0000
commit04bcf30e59fd95aa751e875e46e77f0dc5a09281 (patch)
treed02b16bdc50841368a685d53244466db729e42a2 /bundles
parent48dac619754c1b269d36d57546c0ca0e93084674 (diff)
downloadrt.equinox.p2-04bcf30e59fd95aa751e875e46e77f0dc5a09281.tar.gz
rt.equinox.p2-04bcf30e59fd95aa751e875e46e77f0dc5a09281.tar.xz
rt.equinox.p2-04bcf30e59fd95aa751e875e46e77f0dc5a09281.zip
Compiler warning in I20100504-0800
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java
index 43e65dc70..cdac28f23 100644
--- a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java
+++ b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java
@@ -322,7 +322,9 @@ public class SimplePlanner implements IPlanner {
plan.setStatus(slicer.getStatus());
return plan;
}
- slice = new CompoundQueryable<IInstallableUnit>(new IQueryable[] {slice, new QueryableArray(profileChangeRequest.getAdditions().toArray(new IInstallableUnit[profileChangeRequest.getAdditions().size()]))});
+ @SuppressWarnings("unchecked")
+ final IQueryable<IInstallableUnit>[] queryables = new IQueryable[] {slice, new QueryableArray(profileChangeRequest.getAdditions().toArray(new IInstallableUnit[profileChangeRequest.getAdditions().size()]))};
+ slice = new CompoundQueryable<IInstallableUnit>(queryables);
Projector projector = new Projector(slice, newSelectionContext, slicer.getNonGreedyIUs(), satisfyMetaRequirements(profileChangeRequest.getProfileProperties()));
projector.encode((IInstallableUnit) updatedPlan[0], (IInstallableUnit[]) updatedPlan[1], profile, profileChangeRequest.getAdditions(), sub.newChild(ExpandWork / 4));
IStatus s = projector.invokeSolver(sub.newChild(ExpandWork / 4));

Back to the top