Hello,

This is my first time writing to this mailing list. I hope it is the right
one to reach out the Apache Commons community.

I was looking at the use of CollectionUtils.collate and there is an option
to NOT include duplicates:

var collated = CollectionUtils.collate(List.of("a", "b"), List.of("b",
"a"), false);

assertThat(collated)
        .containsExactly("a", "b");

At least that is my understanding. However the test above fails, as the
item "a" is not identified as a duplicate.

I would be more than happy to look at this issue and contribute myself to a
fix, but wanted to reach out first to make sure this is an issue in the
first place or I have just misinterpreted the javadocs.

Thanks and best regards,
Simone (sic2)

Reply via email to