mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-22 22:45:21 +01:00
Merge pull request #3281 from chimp1984/small-fixes-for-formatter-refactoring
Use static method, remove unused formatter field
This commit is contained in:
commit
8327c1fd12
2 changed files with 3 additions and 5 deletions
|
@ -135,11 +135,11 @@ public class BsqFormatter extends BSFormatter {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String formatBTCWithCode(long satoshi) {
|
public String formatBTCWithCode(long satoshi) {
|
||||||
return super.formatCoinWithCode(satoshi, btcCoinFormat);
|
return BSFormatter.formatCoinWithCode(satoshi, btcCoinFormat);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String formatBTCWithCode(Coin coin) {
|
public String formatBTCWithCode(Coin coin) {
|
||||||
return super.formatCoinWithCode(coin, btcCoinFormat);
|
return BSFormatter.formatCoinWithCode(coin, btcCoinFormat);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String formatBTC(Coin coin) {
|
public String formatBTC(Coin coin) {
|
||||||
|
|
|
@ -27,12 +27,10 @@ import javax.inject.Inject;
|
||||||
|
|
||||||
public class SecurityDepositValidator extends NumberValidator {
|
public class SecurityDepositValidator extends NumberValidator {
|
||||||
|
|
||||||
private final BSFormatter formatter;
|
|
||||||
private PaymentAccount paymentAccount;
|
private PaymentAccount paymentAccount;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public SecurityDepositValidator(BSFormatter formatter) {
|
public SecurityDepositValidator() {
|
||||||
this.formatter = formatter;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPaymentAccount(PaymentAccount paymentAccount) {
|
public void setPaymentAccount(PaymentAccount paymentAccount) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue