mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-19 09:50:32 +01:00
DefaultCoinSelector: use List.sort()
instead of Collections.sort()
This commit is contained in:
parent
2be7ee33f8
commit
bd52545fb7
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user