Skip to content

Commit

Permalink
Replace Collections.sort with List.sort
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Jan 3, 2023
1 parent 17b4ffe commit 60c6823
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -27,7 +27,6 @@
import java.util.Set;
import java.util.HashSet;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.ArrayList;
import java.io.StringWriter;
Expand Down Expand Up @@ -120,7 +119,7 @@ private void renderSummaryTable(Element library, String prefix) {

private List<Element> sortByName(List<Element> list) {
List<Element> tags = new ArrayList<>(list);
Collections.sort(tags,SORT_BY_NAME);
tags.sort(SORT_BY_NAME);
return tags;
}

Expand Down

0 comments on commit 60c6823

Please sign in to comment.