aherbert commented on PR #331:
URL: 
https://github.com/apache/commons-collections/pull/331#issuecomment-1242674514

   I have merged this in commit: 9a58c1bbdf7c65e71b33ab1ba406f1de5a8191df
   
   I have made some further modifications. I updated the IndexProducer to 
document that the forEach and asIndexArray that `Indices ordering and 
uniqueness is not guaranteed`.
   
   I have refactored the IndexProducer test so that the distinct and ordering 
behaviour can be asserted. Please check the current master. I found one bug 
which is currently disabled in BitCountProducerFromIndexProducerTest. If you 
create a BitCountProducer from an IndexProducer that has duplicates then the 
counts are not correct. Can you have a look and consider how to fix this, 
either by documentation that duplicate indices are ignored, or by actually 
correcting the counts.
   
   Since an IndexProducer makes no guarantee on duplicates it may be fair to 
just state that the BitCountProducer will create a count of 1 even in the event 
of duplicates.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to