mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-09 07:02:24 -04:00
fix unreachable code
This commit is contained in:
parent
5cdbaccc91
commit
32a2848644
1 changed files with 1 additions and 7 deletions
|
@ -304,6 +304,7 @@ public abstract class PaymentAccount implements PersistablePayload {
|
||||||
// last moment we could apply some special handling if needed (e.g. as it happens for Revolut)
|
// last moment we could apply some special handling if needed (e.g. as it happens for Revolut)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public String getPreTradeMessage(boolean isBuyer) {
|
public String getPreTradeMessage(boolean isBuyer) {
|
||||||
if (isBuyer) {
|
if (isBuyer) {
|
||||||
return getMessageForBuyer();
|
return getMessageForBuyer();
|
||||||
|
@ -341,13 +342,6 @@ public abstract class PaymentAccount implements PersistablePayload {
|
||||||
// ---------------------------- SERIALIZATION -----------------------------
|
// ---------------------------- SERIALIZATION -----------------------------
|
||||||
|
|
||||||
public String toJson() {
|
public String toJson() {
|
||||||
Map<String, Object> jsonMap = new HashMap<String, Object>();
|
|
||||||
if (paymentAccountPayload != null) jsonMap.putAll(gsonBuilder.create().fromJson(paymentAccountPayload.toJson(), (Type) Object.class));
|
|
||||||
jsonMap.put("accountName", getAccountName());
|
|
||||||
jsonMap.put("accountId", getId());
|
|
||||||
if (paymentAccountPayload != null) jsonMap.put("salt", getSaltAsHex());
|
|
||||||
return gsonBuilder.create().toJson(jsonMap);
|
|
||||||
|
|
||||||
Gson gson = gsonBuilder
|
Gson gson = gsonBuilder
|
||||||
.registerTypeAdapter(PaymentAccount.class, new PaymentAccountTypeAdapter(this.getClass()))
|
.registerTypeAdapter(PaymentAccount.class, new PaymentAccountTypeAdapter(this.getClass()))
|
||||||
.create();
|
.create();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue