Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use static method, remove unused formatter field #3281

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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