From b26a15600d684f21a779148a951a05caa0ca629b Mon Sep 17 00:00:00 2001 From: chimp1984 Date: Tue, 17 Sep 2019 16:56:30 +0200 Subject: [PATCH] Use static method, remove unused formatter field --- core/src/main/java/bisq/core/util/BsqFormatter.java | 4 ++-- .../desktop/util/validation/SecurityDepositValidator.java | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/bisq/core/util/BsqFormatter.java b/core/src/main/java/bisq/core/util/BsqFormatter.java index 8dd90644434..a1eb0debc4e 100644 --- a/core/src/main/java/bisq/core/util/BsqFormatter.java +++ b/core/src/main/java/bisq/core/util/BsqFormatter.java @@ -135,11 +135,11 @@ public String formatBTCSatoshis(long satoshi) { } public String formatBTCWithCode(long satoshi) { - return super.formatCoinWithCode(satoshi, btcCoinFormat); + return BSFormatter.formatCoinWithCode(satoshi, btcCoinFormat); } public String formatBTCWithCode(Coin coin) { - return super.formatCoinWithCode(coin, btcCoinFormat); + return BSFormatter.formatCoinWithCode(coin, btcCoinFormat); } public String formatBTC(Coin coin) { diff --git a/desktop/src/main/java/bisq/desktop/util/validation/SecurityDepositValidator.java b/desktop/src/main/java/bisq/desktop/util/validation/SecurityDepositValidator.java index 0abfec1a4ef..db491b20ae6 100644 --- a/desktop/src/main/java/bisq/desktop/util/validation/SecurityDepositValidator.java +++ b/desktop/src/main/java/bisq/desktop/util/validation/SecurityDepositValidator.java @@ -27,12 +27,10 @@ public class SecurityDepositValidator extends NumberValidator { - private final BSFormatter formatter; private PaymentAccount paymentAccount; @Inject - public SecurityDepositValidator(BSFormatter formatter) { - this.formatter = formatter; + public SecurityDepositValidator() { } public void setPaymentAccount(PaymentAccount paymentAccount) {