Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Network Health
Metrics
Onionoo
Commits
17f2c134
Commit
17f2c134
authored
Aug 20, 2018
by
Karsten Loesing
Browse files
Replace Collections.sort with List.sort.
parent
f8ee7cf0
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/org/torproject/onionoo/server/RequestHandler.java
View file @
17f2c134
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment