Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyHZM committed Jan 16, 2019
1 parent 416c575 commit 2f4a817
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ private RouterChain(URL url) {
*/
public void initWithRouters(List<Router> builtinRouters) {
this.builtinRouters = builtinRouters;
Collections.sort(builtinRouters);
this.routers = new CopyOnWriteArrayList<>(builtinRouters);
this.sort();
}

/**
Expand All @@ -83,12 +83,8 @@ public void addRouters(List<Router> routers) {
this.routers = newRouters;
}

private void sort() {
Collections.sort(routers);
}

/**
*
* @param url
* @param invocation
* @return
Expand Down

0 comments on commit 2f4a817

Please sign in to comment.