commit 1c74a356ad02ff79846fe53d8a74567e4d15fa52 Author: Karsten Loesing karsten.loesing@gmx.net Date: Mon Aug 20 16:27:18 2018 +0200
Replace addAll with parameterized constructor call. --- .../org/torproject/metrics/collector/webstats/SanitizeWeblogs.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/main/java/org/torproject/metrics/collector/webstats/SanitizeWeblogs.java b/src/main/java/org/torproject/metrics/collector/webstats/SanitizeWeblogs.java index f3fbf43..7096832 100644 --- a/src/main/java/org/torproject/metrics/collector/webstats/SanitizeWeblogs.java +++ b/src/main/java/org/torproject/metrics/collector/webstats/SanitizeWeblogs.java @@ -218,8 +218,7 @@ public class SanitizeWeblogs extends CollecTorMain { if (dates.isEmpty()) { // return the empty interval return new LocalDate[]{LocalDate.MAX, LocalDate.MIN}; } - SortedSet<LocalDate> sorted = new TreeSet<>(); - sorted.addAll(dates); + SortedSet<LocalDate> sorted = new TreeSet<>(dates); if (this.limits) { for (int i = 0; i < LIMIT - 1; i++) { sorted.remove(sorted.last());