From dadd22cc313a1fedf845a33240b0f317fd6035e4 Mon Sep 17 00:00:00 2001 From: Christoph Atteneder Date: Fri, 19 Apr 2019 10:53:44 +0200 Subject: [PATCH] Remove unnecessary static import --- .../desktop/util/validation/SecurityDepositValidator.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/desktop/src/main/java/bisq/desktop/util/validation/SecurityDepositValidator.java b/desktop/src/main/java/bisq/desktop/util/validation/SecurityDepositValidator.java index d5949be90c..04ecfe59f8 100644 --- a/desktop/src/main/java/bisq/desktop/util/validation/SecurityDepositValidator.java +++ b/desktop/src/main/java/bisq/desktop/util/validation/SecurityDepositValidator.java @@ -17,15 +17,13 @@ package bisq.desktop.util.validation; +import bisq.core.btc.wallet.Restrictions; import bisq.core.locale.Res; import bisq.core.payment.PaymentAccount; import bisq.core.util.BSFormatter; import javax.inject.Inject; -import static bisq.core.btc.wallet.Restrictions.getMaxBuyerSecurityDepositAsPercent; -import static bisq.core.btc.wallet.Restrictions.getMinBuyerSecurityDepositAsPercent; - public class SecurityDepositValidator extends NumberValidator { private final BSFormatter formatter; @@ -61,7 +59,7 @@ public class SecurityDepositValidator extends NumberValidator { private ValidationResult validateIfNotTooLowPercentageValue(String input) { try { double percentage = formatter.parsePercentStringToDouble(input); - double minPercentage = getMinBuyerSecurityDepositAsPercent(paymentAccount); + double minPercentage = Restrictions.getMinBuyerSecurityDepositAsPercent(paymentAccount); if (percentage < minPercentage) return new ValidationResult(false, Res.get("validation.inputTooSmall", formatter.formatToPercentWithSymbol(minPercentage))); @@ -75,7 +73,7 @@ public class SecurityDepositValidator extends NumberValidator { private ValidationResult validateIfNotTooHighPercentageValue(String input) { try { double percentage = formatter.parsePercentStringToDouble(input); - double maxPercentage = getMaxBuyerSecurityDepositAsPercent(paymentAccount); + double maxPercentage = Restrictions.getMaxBuyerSecurityDepositAsPercent(paymentAccount); if (percentage > maxPercentage) return new ValidationResult(false, Res.get("validation.inputTooLarge", formatter.formatToPercentWithSymbol(maxPercentage)));