Skip to content
Permalink
Browse files

[SMALLFIX] Replace Collections.sort() with List.sort()

pr-link: #8647
change-id: cid-7502d27e33c758f50ff8deafd790912e52d5c05e
  • Loading branch information...
turncoat54 authored and alluxio-bot committed May 14, 2019
1 parent be27459 commit 055c3ff7acb6530696bf9f500f5ec7e5aa76c82c
Showing with 1 addition and 2 deletions.
  1. +1 −2 core/server/common/src/main/java/alluxio/Registry.java
@@ -20,7 +20,6 @@
import java.io.IOException;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Deque;
import java.util.HashMap;
@@ -114,7 +113,7 @@ public Registry() {}
*/
public List<T> getServers() {
List<T> servers = new ArrayList<>(mRegistry.values());
Collections.sort(servers, new DependencyComparator());
servers.sort(new DependencyComparator());
return servers;
}

0 comments on commit 055c3ff

Please sign in to comment.
You can’t perform that action at this time.