DefaultCoinSelector: use List.sort() instead of Collections.sort()

This commit is contained in:
Sean Gilligan 2023-09-06 12:17:03 -07:00 committed by Andreas Schildbach
parent 2be7ee33f8
commit bd52545fb7

View File

@ -101,7 +101,7 @@ public class DefaultCoinSelector implements CoinSelector {
*/
@Deprecated
static void sortOutputs(ArrayList<TransactionOutput> outputs) {
Collections.sort(outputs, DefaultCoinSelector::compareByDepth);
outputs.sort(DefaultCoinSelector::compareByDepth);
}
/** Sub-classes can override this to just customize whether transactions are usable, but keep age sorting. */