Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/p2/query/QueryUtil.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/p2/query/QueryUtil.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/p2/query/QueryUtil.java b/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/p2/query/QueryUtil.java
index 82123514c..3c68c1635 100644
--- a/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/p2/query/QueryUtil.java
+++ b/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/p2/query/QueryUtil.java
@@ -54,8 +54,9 @@ public class QueryUtil {
*
* @param queryables The collection of queryables to be combined
*/
- @SuppressWarnings("unchecked")
public static <T> IQueryable<T> compoundQueryable(Collection<? extends IQueryable<T>> queryables) {
+ // don't suppress the warning as it will cause warnings in the official build
+ // see bug 423628. Write this without unchecked conversion.
return new CompoundQueryable<T>(queryables.toArray(new IQueryable[queryables.size()]));
}

Back to the top