diff options
author | Pascal Rapicault | 2010-05-07 15:29:57 +0000 |
---|---|---|
committer | Pascal Rapicault | 2010-05-07 15:29:57 +0000 |
commit | 04bcf30e59fd95aa751e875e46e77f0dc5a09281 (patch) | |
tree | d02b16bdc50841368a685d53244466db729e42a2 /bundles | |
parent | 48dac619754c1b269d36d57546c0ca0e93084674 (diff) | |
download | rt.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.java | 4 |
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)); |