Skip to content

Commit

Permalink
Merge pull request #3281 from chimp1984/small-fixes-for-formatter-ref…
Browse files Browse the repository at this point in the history
…actoring

Use static method, remove unused formatter field
  • Loading branch information
ripcurlx authored Sep 17, 2019
2 parents 37eef84 + b26a156 commit 8327c1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/bisq/core/util/BsqFormatter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8327c1f

Please sign in to comment.