Please sign in to comment.
SI-6364 SetWrapper does not preserve performance / behavior
O(n) performance of wrapped set contains was the problem. Added overrides for contains and isEmpty to SetWrapper. Note that sets are invariant in Scala, while the Java signature is for any Object, so we trap a ClassCastException if one occurs. (Is this everything that could possibly go wrong? I think so, but am not as confident as I would like.)
- Loading branch information...
Showing with 6 additions and 0 deletions.