|Re: [p2-dev] duplicate IUs|
I can definitely live with using toSet() when a set is needed (for example by the UI).
On 03/31/2010 10:50 PM, Ian Bull wrote:
There are several ways to get a unique result. One is to use "unique() or latest()" in a query. Even if you just iterate over the result, it will be guaranteed to be unique.
This is not consistent with what I saw. I queried a composite repo for ALL IUs, and IUs were duplicated between child repos. When I iterated over the result, I got duplicates.
When you iterate over a result that is obtained using unique() or latest(), the result will not contain duplicates.
Just iterating an arbitrary result might well give you duplicates.
p2-dev mailing list