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:
Breno A. 2024-06-09 09:09:45 -03:00
parent 9c946e9d2e
commit 8c35c89bf5

View File

@ -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<>();