Commit 17f2c134 authored by Karsten Loesing's avatar Karsten Loesing
Browse files

Replace Collections.sort with List.sort.

parent f8ee7cf0
......@@ -9,7 +9,6 @@ import org.torproject.onionoo.docs.SummaryDocument;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
......@@ -661,8 +660,8 @@ public class RequestHandler {
}
Comparator<SummaryDocument> comparator
= new SummaryDocumentComparator(this.order);
Collections.sort(uniqueRelays, comparator);
Collections.sort(uniqueBridges, comparator);
uniqueRelays.sort(comparator);
uniqueBridges.sort(comparator);
this.orderedRelays.addAll(uniqueRelays);
this.orderedBridges.addAll(uniqueBridges);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment