Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoribull2009-12-08 07:09:17 +0000
committeribull2009-12-08 07:09:17 +0000
commit241c85bd09a7a863d3e7744a2f80bd3544d4bf21 (patch)
tree5d8ca684edb22b87b5cac1ceafd6cb5b1f7da35c
parentd0dca2c870460043951f1b41936d5158d9c440a2 (diff)
downloadrt.equinox.p2-241c85bd09a7a863d3e7744a2f80bd3544d4bf21.tar.gz
rt.equinox.p2-241c85bd09a7a863d3e7744a2f80bd3544d4bf21.tar.xz
rt.equinox.p2-241c85bd09a7a863d3e7744a2f80bd3544d4bf21.zip
256355: [metadata] query() forces returning the argument
https://bugs.eclipse.org/bugs/show_bug.cgi?id=256355
-rw-r--r--bundles/org.eclipse.equinox.p2.common/src/org/eclipse/equinox/p2/common/TranslationSupport.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/bundles/org.eclipse.equinox.p2.common/src/org/eclipse/equinox/p2/common/TranslationSupport.java b/bundles/org.eclipse.equinox.p2.common/src/org/eclipse/equinox/p2/common/TranslationSupport.java
index 71a0749ba..ca1681b0b 100644
--- a/bundles/org.eclipse.equinox.p2.common/src/org/eclipse/equinox/p2/common/TranslationSupport.java
+++ b/bundles/org.eclipse.equinox.p2.common/src/org/eclipse/equinox/p2/common/TranslationSupport.java
@@ -11,10 +11,6 @@
*******************************************************************************/
package org.eclipse.equinox.p2.common;
-import org.eclipse.equinox.p2.engine.IProfile;
-import org.eclipse.equinox.p2.engine.IProfileRegistry;
-
-import org.eclipse.equinox.p2.metadata.IInstallableUnit;
import java.lang.ref.SoftReference;
import java.util.*;
@@ -28,6 +24,9 @@ import org.eclipse.equinox.internal.p2.metadata.RequiredCapability;
import org.eclipse.equinox.internal.provisional.p2.metadata.*;
import org.eclipse.equinox.internal.provisional.p2.metadata.query.*;
import org.eclipse.equinox.p2.core.IProvisioningAgent;
+import org.eclipse.equinox.p2.engine.IProfile;
+import org.eclipse.equinox.p2.engine.IProfileRegistry;
+import org.eclipse.equinox.p2.metadata.IInstallableUnit;
import org.eclipse.equinox.p2.metadata.IRequirement;
import org.eclipse.equinox.p2.metadata.query.FragmentQuery;
import org.eclipse.equinox.p2.metadata.query.IQuery;
@@ -242,7 +241,7 @@ public class TranslationSupport {
}
IQuery iuQuery = new PipedQuery(new IQuery[] {new FragmentQuery(), CompoundQuery.createCompoundQuery(localeQuery, false)});
- Collector collected = fragmentSource.query(iuQuery, new Collector(), null);
+ Collector collected = fragmentSource.query(iuQuery, null);
LocaleCollectorCache.put(locale, new SoftReference(collected));
return collected;
}

Back to the top