mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-19 07:15:54 -04:00
fix unreachable code
This commit is contained in:
parent
5cdbaccc91
commit
32a2848644
@ -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)
|
||||
}
|
||||
|
||||
|
||||
public String getPreTradeMessage(boolean isBuyer) {
|
||||
if (isBuyer) {
|
||||
return getMessageForBuyer();
|
||||
@ -341,13 +342,6 @@ public abstract class PaymentAccount implements PersistablePayload {
|
||||
// ---------------------------- SERIALIZATION -----------------------------
|
||||
|
||||
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
|
||||
.registerTypeAdapter(PaymentAccount.class, new PaymentAccountTypeAdapter(this.getClass()))
|
||||
.create();
|
||||
|
Loading…
x
Reference in New Issue
Block a user