mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-04 23:32:55 +08:00
refactor: replace Collections.sort with list.sort
Collections.sort is just a wrapper, so it is better to use an instance method directly.
This commit is contained in:
parent
9c946e9d2e
commit
8c35c89bf5
@ -65,7 +65,7 @@ public class MailHandler extends BasePlayerManager {
|
||||
public void deleteMail(List<Integer> mailList) {
|
||||
List<Integer> sortedMailList = new ArrayList<>();
|
||||
sortedMailList.addAll(mailList);
|
||||
Collections.sort(sortedMailList, Collections.reverseOrder());
|
||||
sortedMailList.sort(Collections.reverseOrder());
|
||||
|
||||
List<Integer> deleted = new ArrayList<>();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user