dmfs / jems

Java gems, a collection of Java utilities.
Apache License 2.0
5 stars 2 forks source link

Fix removal of duplicates by Sorted, fixes #328 #329

Closed dmfs closed 2 years ago

dmfs commented 2 years ago

The TreeSet we were using before (like any Set) dropped duplicate values. By replacing it with a List we can sort it preserving duplicate values.

codecov[bot] commented 2 years ago

Codecov Report

Merging #329 (2417d14) into master (9e31bf0) will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #329   +/-   ##
=========================================
  Coverage     99.43%   99.43%           
  Complexity      645      645           
=========================================
  Files           161      161           
  Lines          1414     1416    +2     
  Branches         73       73           
=========================================
+ Hits           1406     1408    +2     
  Misses            8        8           
Impacted Files Coverage Δ
src/main/java/org/dmfs/jems2/iterable/Sorted.java 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9e31bf0...2417d14. Read the comment docs.