Refactor: Replace unnecessary Collections.sort with List.sort (#9168)

This commit is contained in:
DeepCrimson 2022-06-26 19:59:28 -07:00 committed by GitHub
parent 3f96f243b2
commit 12595ac651
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2502,7 +2502,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
protected List<ColoredManaSymbol> chooseDeckColorsIfPossible() {
if (pickedCards.size() > 2) {
// sort by score and color mana symbol count in descending order
Collections.sort(pickedCards, new Comparator<PickedCard>() {
pickedCards.sort(new Comparator<PickedCard>() {
@Override
public int compare(PickedCard o1, PickedCard o2) {
if (o1.score.equals(o2.score)) {