From bd52545fb77dd79b2a885a03c783a6a431d1a240 Mon Sep 17 00:00:00 2001 From: Sean Gilligan Date: Wed, 6 Sep 2023 12:17:03 -0700 Subject: [PATCH] DefaultCoinSelector: use `List.sort()` instead of `Collections.sort()` --- core/src/main/java/org/bitcoinj/wallet/DefaultCoinSelector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/bitcoinj/wallet/DefaultCoinSelector.java b/core/src/main/java/org/bitcoinj/wallet/DefaultCoinSelector.java index a76c76979..ee0a575bb 100644 --- a/core/src/main/java/org/bitcoinj/wallet/DefaultCoinSelector.java +++ b/core/src/main/java/org/bitcoinj/wallet/DefaultCoinSelector.java @@ -101,7 +101,7 @@ public class DefaultCoinSelector implements CoinSelector { */ @Deprecated static void sortOutputs(ArrayList 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. */