Use static method, remove unused formatter field

This commit is contained in:
chimp1984 2019-09-17 16:56:30 +02:00
parent 37eef84e57
commit b26a15600d
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3
2 changed files with 3 additions and 5 deletions

View File

@ -135,11 +135,11 @@ public class BsqFormatter extends BSFormatter {
}
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) {

View File

@ -27,12 +27,10 @@ import javax.inject.Inject;
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) {