From 51a882a2cb2b41a6e701158402dce6017b883dd4 Mon Sep 17 00:00:00 2001 From: Tim Ross Date: Tue, 11 Jun 2024 09:58:23 -0400 Subject: [PATCH] [Bitstamp] Simplify with Jacksonized annotation --- .../bitstamp/dto/account/WithdrawalFee.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/dto/account/WithdrawalFee.java b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/dto/account/WithdrawalFee.java index 80be3f1a39c..7a62ca1e27a 100644 --- a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/dto/account/WithdrawalFee.java +++ b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/dto/account/WithdrawalFee.java @@ -1,12 +1,12 @@ package org.knowm.xchange.bitstamp.dto.account; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonProperty; import java.math.BigDecimal; import lombok.Builder; import lombok.Value; +import lombok.extern.jackson.Jacksonized; import org.knowm.xchange.currency.Currency; +@Jacksonized @Value @Builder public class WithdrawalFee { @@ -16,14 +16,4 @@ public class WithdrawalFee { BigDecimal fee; Currency currency; - - @JsonCreator - public WithdrawalFee( - @JsonProperty("network") String network, - @JsonProperty("fee") BigDecimal fee, - @JsonProperty("currency") Currency currency) { - this.network = network; - this.fee = fee; - this.currency = currency; - } }