mirror of
https://github.com/correl/mage.git
synced 2024-11-25 19:19:55 +00:00
Refactor: Replace unnecessary Collections.sort with List.sort (#9168)
This commit is contained in:
parent
3f96f243b2
commit
12595ac651
1 changed files with 1 additions and 1 deletions
|
@ -2502,7 +2502,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
||||||
protected List<ColoredManaSymbol> chooseDeckColorsIfPossible() {
|
protected List<ColoredManaSymbol> chooseDeckColorsIfPossible() {
|
||||||
if (pickedCards.size() > 2) {
|
if (pickedCards.size() > 2) {
|
||||||
// sort by score and color mana symbol count in descending order
|
// sort by score and color mana symbol count in descending order
|
||||||
Collections.sort(pickedCards, new Comparator<PickedCard>() {
|
pickedCards.sort(new Comparator<PickedCard>() {
|
||||||
@Override
|
@Override
|
||||||
public int compare(PickedCard o1, PickedCard o2) {
|
public int compare(PickedCard o1, PickedCard o2) {
|
||||||
if (o1.score.equals(o2.score)) {
|
if (o1.score.equals(o2.score)) {
|
||||||
|
|
Loading…
Reference in a new issue