summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Bull2013-09-03 14:34:59 (EDT)
committerIan Bull2013-09-03 14:34:59 (EDT)
commit6223b0efce1380e5540af374e74df821f163dbbd (patch)
tree27255232786a8ab2fb8949820db151ef81a80011
parent39e4ff05ce7d54a83834454e81f1dc3083ca94d5 (diff)
downloadrt.equinox.p2-6223b0efce1380e5540af374e74df821f163dbbd.zip
rt.equinox.p2-6223b0efce1380e5540af374e74df821f163dbbd.tar.gz
rt.equinox.p2-6223b0efce1380e5540af374e74df821f163dbbd.tar.bz2
Bug 381673 - 16 compile warnings in official build
Explicitly cast an array to Object[] for VarArgs invocation.
-rw-r--r--bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/UserDefinedOptimizationFunction.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/UserDefinedOptimizationFunction.java b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/UserDefinedOptimizationFunction.java
index 7690ba3..65625c4 100644
--- a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/UserDefinedOptimizationFunction.java
+++ b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/UserDefinedOptimizationFunction.java
@@ -105,7 +105,7 @@ public class UserDefinedOptimizationFunction extends OptimizationFunction {
if (!oneInstalled) {
try {
Projector.AbstractVariable abs = new Projector.AbstractVariable("NEW"); //$NON-NLS-1$
- dependencyHelper.or(FakeExplanation.getInstance(), abs, matches.toArray(IInstallableUnit.class));
+ dependencyHelper.or(FakeExplanation.getInstance(), abs, (Object[]) matches.toArray(IInstallableUnit.class));
weightedObjects.add(WeightedObject.newWO(abs, weight));
} catch (ContradictionException e) {
// should not happen