mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-25 07:27:18 +01:00
Remove unused Logger fields
... note that *View classes now all inherit a protected Logger instance, so redeclaring in each class is no longer necessary.
This commit is contained in:
parent
a392d78fc2
commit
0e0cbde27f
50 changed files with 3 additions and 219 deletions
|
@ -19,9 +19,6 @@ package io.bitsquare.arbitrator;
|
|||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
//TODO still open if we use that really...
|
||||
|
||||
/**
|
||||
|
@ -30,8 +27,6 @@ import org.slf4j.LoggerFactory;
|
|||
public class Reputation implements Serializable {
|
||||
private static final long serialVersionUID = -3073174320050879490L;
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(Reputation.class);
|
||||
|
||||
//TODO
|
||||
public Reputation() {
|
||||
}
|
||||
|
|
|
@ -28,12 +28,7 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class Navigation {
|
||||
private static final Logger log = LoggerFactory.getLogger(Navigation.class);
|
||||
|
||||
// New listeners can be added during iteration so we use CopyOnWriteArrayList to prevent invalid array
|
||||
// modification
|
||||
private final List<Listener> listeners = new CopyOnWriteArrayList<>();
|
||||
|
|
|
@ -22,11 +22,7 @@ import com.google.inject.Inject;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class OverlayManager {
|
||||
private static final Logger log = LoggerFactory.getLogger(OverlayManager.class);
|
||||
|
||||
private final List<OverlayListener> listeners = new ArrayList<>();
|
||||
|
||||
|
|
|
@ -32,11 +32,7 @@ import javafx.scene.effect.*;
|
|||
import javafx.scene.layout.*;
|
||||
import javafx.scene.paint.*;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class BalanceTextField extends AnchorPane {
|
||||
private static final Logger log = LoggerFactory.getLogger(BalanceTextField.class);
|
||||
|
||||
private final TextField textField;
|
||||
private final Tooltip progressIndicatorTooltip;
|
||||
|
|
|
@ -39,9 +39,6 @@ import javafx.scene.text.*;
|
|||
import de.jensd.fx.fontawesome.AwesomeDude;
|
||||
import de.jensd.fx.fontawesome.AwesomeIcon;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* Convenience Component for info icon, info text and link display in a GridPane.
|
||||
* Only the properties needed are supported.
|
||||
|
@ -49,7 +46,6 @@ import org.slf4j.LoggerFactory;
|
|||
* but add the children nodes to the gridPane.
|
||||
*/
|
||||
public class InfoDisplay extends Parent {
|
||||
private static final Logger log = LoggerFactory.getLogger(InfoDisplay.class);
|
||||
|
||||
private final StringProperty text = new SimpleStringProperty();
|
||||
private final IntegerProperty rowIndex = new SimpleIntegerProperty(0);
|
||||
|
|
|
@ -31,9 +31,6 @@ import javafx.stage.Window;
|
|||
|
||||
import org.controlsfx.control.PopOver;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* TextField with validation support.
|
||||
* If validator is set it supports on focus out validation with that validator. If a more sophisticated validation is
|
||||
|
@ -48,7 +45,6 @@ import org.slf4j.LoggerFactory;
|
|||
//TODO There are some rare situation where it behaves buggy. Needs further investigation and improvements. Also
|
||||
// consider replacement with controlsFX components.
|
||||
public class InputTextField extends TextField {
|
||||
private static final Logger log = LoggerFactory.getLogger(InputTextField.class);
|
||||
|
||||
private final Effect invalidEffect = new DropShadow(BlurType.THREE_PASS_BOX, Color.RED, 4, 0.0, 0, 0);
|
||||
|
||||
|
|
|
@ -19,9 +19,6 @@ package io.bitsquare.gui.components;
|
|||
|
||||
import io.bitsquare.util.Utilities;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import eu.hansolo.enzo.notification.Notification;
|
||||
import eu.hansolo.enzo.notification.NotificationBuilder;
|
||||
import eu.hansolo.enzo.notification.NotifierBuilder;
|
||||
|
@ -30,7 +27,6 @@ import eu.hansolo.enzo.notification.NotifierBuilder;
|
|||
* Not sure if we stick with the eu.hansolo.enzo.notification.Notification implementation, so keep it behind a service
|
||||
*/
|
||||
public class SystemNotification {
|
||||
private static final Logger log = LoggerFactory.getLogger(SystemNotification.class);
|
||||
private static final Notification.Notifier notifier = NotifierBuilder.create().build();
|
||||
|
||||
public static void openInfoNotification(String title, String message) {
|
||||
|
|
|
@ -27,11 +27,7 @@ import javafx.scene.layout.*;
|
|||
import de.jensd.fx.fontawesome.AwesomeDude;
|
||||
import de.jensd.fx.fontawesome.AwesomeIcon;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class TextFieldWithCopyIcon extends AnchorPane {
|
||||
private static final Logger log = LoggerFactory.getLogger(TextFieldWithCopyIcon.class);
|
||||
|
||||
private final StringProperty text = new SimpleStringProperty();
|
||||
|
||||
|
|
|
@ -23,11 +23,7 @@ import javafx.geometry.Insets;
|
|||
import javafx.scene.control.*;
|
||||
import javafx.scene.layout.*;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class TitledGroupBg extends Pane {
|
||||
private static final Logger log = LoggerFactory.getLogger(TitledGroupBg.class);
|
||||
|
||||
private final Label label;
|
||||
private final StringProperty text = new SimpleStringProperty();
|
||||
|
|
|
@ -23,11 +23,7 @@ import javafx.geometry.Insets;
|
|||
import javafx.scene.control.*;
|
||||
import javafx.scene.layout.*;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class TitledSeparator extends Pane {
|
||||
private static final Logger log = LoggerFactory.getLogger(TitledSeparator.class);
|
||||
|
||||
private final Label label;
|
||||
private final StringProperty text = new SimpleStringProperty();
|
||||
|
|
|
@ -35,11 +35,7 @@ import com.sun.javafx.scene.control.behavior.BehaviorBase;
|
|||
import com.sun.javafx.scene.control.behavior.KeyBinding;
|
||||
import com.sun.javafx.scene.control.skin.BehaviorSkinBase;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
class ProcessStepBarSkin<T> extends BehaviorSkinBase<ProcessStepBar<T>, BehaviorBase<ProcessStepBar<T>>> {
|
||||
private static final Logger log = LoggerFactory.getLogger(ProcessStepBarSkin.class);
|
||||
|
||||
private final ProcessStepBar<T> controller;
|
||||
private LabelWithBorder currentLabelWithBorder;
|
||||
|
|
|
@ -28,13 +28,8 @@ import javafx.beans.value.ChangeListener;
|
|||
import javafx.fxml.FXML;
|
||||
import javafx.scene.control.*;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class AccountView extends ActivatableViewAndModel {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(AccountView.class);
|
||||
|
||||
private Navigation.Listener navigationListener;
|
||||
private ChangeListener<Tab> tabChangeListener;
|
||||
|
||||
|
|
|
@ -54,12 +54,8 @@ import javafx.util.StringConverter;
|
|||
import de.jensd.fx.fontawesome.AwesomeDude;
|
||||
import de.jensd.fx.fontawesome.AwesomeIcon;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
// TODO Arbitration is very basic yet
|
||||
public class ArbitratorRegistrationView extends ActivatableView {
|
||||
private static final Logger log = LoggerFactory.getLogger(ArbitratorRegistrationView.class);
|
||||
|
||||
private final Persistence persistence;
|
||||
private final WalletService walletService;
|
||||
|
|
|
@ -19,9 +19,9 @@ package io.bitsquare.gui.main.account.content.irc;
|
|||
|
||||
import io.bitsquare.bank.BankAccountType;
|
||||
import io.bitsquare.gui.ActivatableViewAndModel;
|
||||
import io.bitsquare.gui.Wizard;
|
||||
import io.bitsquare.gui.components.InputTextField;
|
||||
import io.bitsquare.gui.components.Popups;
|
||||
import io.bitsquare.gui.Wizard;
|
||||
import io.bitsquare.gui.main.help.Help;
|
||||
import io.bitsquare.gui.main.help.HelpId;
|
||||
import io.bitsquare.util.Utilities;
|
||||
|
|
|
@ -19,10 +19,10 @@ package io.bitsquare.gui.main.account.content.registration;
|
|||
|
||||
import io.bitsquare.gui.InitializableView;
|
||||
import io.bitsquare.gui.OverlayManager;
|
||||
import io.bitsquare.gui.Wizard;
|
||||
import io.bitsquare.gui.components.AddressTextField;
|
||||
import io.bitsquare.gui.components.BalanceTextField;
|
||||
import io.bitsquare.gui.components.Popups;
|
||||
import io.bitsquare.gui.Wizard;
|
||||
import io.bitsquare.gui.main.help.Help;
|
||||
import io.bitsquare.gui.main.help.HelpId;
|
||||
import io.bitsquare.locale.BSResources;
|
||||
|
@ -40,14 +40,8 @@ import org.controlsfx.control.action.AbstractAction;
|
|||
import org.controlsfx.control.action.Action;
|
||||
import org.controlsfx.dialog.Dialog;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
||||
public class RegistrationView extends InitializableView<RegistrationViewModel> implements Wizard.Step {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(RegistrationView.class);
|
||||
|
||||
private final OverlayManager overlayManager;
|
||||
|
||||
@FXML TextField feeTextField;
|
||||
|
|
|
@ -43,13 +43,8 @@ import javafx.stage.Stage;
|
|||
import javafx.util.Callback;
|
||||
import javafx.util.StringConverter;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class RestrictionsView extends ActivatableViewAndModel<RestrictionsViewModel> implements Wizard.Step {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(RestrictionsView.class);
|
||||
|
||||
@FXML ListView<Locale> languagesListView;
|
||||
@FXML ListView<Country> countriesListView;
|
||||
@FXML ListView<Arbitrator> arbitratorsListView;
|
||||
|
|
|
@ -28,13 +28,8 @@ import javafx.fxml.FXML;
|
|||
import javafx.scene.control.*;
|
||||
import javafx.scene.layout.*;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class SeedWordsView extends InitializableView<SeedWordsViewModel> implements Wizard.Step {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(SeedWordsView.class);
|
||||
|
||||
private Wizard parent;
|
||||
|
||||
@FXML Button completedButton;
|
||||
|
|
|
@ -35,13 +35,8 @@ import javafx.scene.paint.*;
|
|||
import de.jensd.fx.fontawesome.AwesomeDude;
|
||||
import de.jensd.fx.fontawesome.AwesomeIcon;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class AccountSettingsView extends ActivatableViewAndModel {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(AccountSettingsView.class);
|
||||
|
||||
private final ViewLoader viewLoader;
|
||||
private final Navigation navigation;
|
||||
|
||||
|
@ -167,7 +162,6 @@ public class AccountSettingsView extends ActivatableViewAndModel {
|
|||
}
|
||||
|
||||
class MenuItem extends ToggleButton {
|
||||
private static final Logger log = LoggerFactory.getLogger(MenuItem.class);
|
||||
|
||||
MenuItem(Navigation navigation, String title, Navigation.Item navigationItem,
|
||||
ToggleGroup toggleGroup) {
|
||||
|
|
|
@ -36,16 +36,11 @@ import javafx.scene.control.*;
|
|||
import javafx.scene.image.*;
|
||||
import javafx.scene.layout.*;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* This UI is not cached as it is normally only needed once.
|
||||
*/
|
||||
public class AccountSetupWizard extends ActivatableView implements Wizard {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(AccountSetupWizard.class);
|
||||
|
||||
private WizardItem seedWords, password, fiatAccount, restrictions, registration;
|
||||
private Navigation.Listener listener;
|
||||
|
||||
|
@ -187,7 +182,6 @@ public class AccountSetupWizard extends ActivatableView implements Wizard {
|
|||
}
|
||||
|
||||
class WizardItem extends HBox {
|
||||
private static final Logger log = LoggerFactory.getLogger(WizardItem.class);
|
||||
|
||||
private final ImageView imageView;
|
||||
private final Label titleLabel;
|
||||
|
|
|
@ -32,11 +32,8 @@ import javafx.beans.property.SimpleStringProperty;
|
|||
import javafx.beans.property.StringProperty;
|
||||
import javafx.scene.control.*;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class TransactionsListItem {
|
||||
private static final Logger log = LoggerFactory.getLogger(TransactionsListItem.class);
|
||||
|
||||
private final StringProperty date = new SimpleStringProperty();
|
||||
private final StringProperty amount = new SimpleStringProperty();
|
||||
private final StringProperty type = new SimpleStringProperty();
|
||||
|
|
|
@ -36,11 +36,7 @@ import javafx.fxml.FXML;
|
|||
import javafx.scene.control.*;
|
||||
import javafx.util.Callback;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class TransactionsView extends ActivatableViewAndModel {
|
||||
private static final Logger log = LoggerFactory.getLogger(TransactionsView.class);
|
||||
|
||||
private final WalletService walletService;
|
||||
private final BSFormatter formatter;
|
||||
|
|
|
@ -53,12 +53,7 @@ import org.controlsfx.control.action.Action;
|
|||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class WithdrawalView extends ActivatableViewAndModel {
|
||||
private static final Logger log = LoggerFactory.getLogger(WithdrawalView.class);
|
||||
|
||||
|
||||
private final WalletService walletService;
|
||||
private final BSFormatter formatter;
|
||||
|
|
|
@ -21,15 +21,8 @@ import io.bitsquare.gui.AbstractView;
|
|||
|
||||
import javax.inject.Inject;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
// will be probably only used for arbitration communication, will be renamed and the icon changed
|
||||
|
||||
|
||||
public class MsgView extends AbstractView {
|
||||
private static final Logger log = LoggerFactory.getLogger(MsgView.class);
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Constructor
|
||||
|
|
|
@ -19,14 +19,10 @@ package io.bitsquare.gui.main.portfolio.closed;
|
|||
|
||||
import io.bitsquare.trade.Trade;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* We could remove that wrapper if it is not needed for additional UI only fields.
|
||||
*/
|
||||
class ClosedTradesListItem {
|
||||
private static final Logger log = LoggerFactory.getLogger(ClosedTradesListItem.class);
|
||||
|
||||
private final Trade trade;
|
||||
|
||||
|
|
|
@ -27,11 +27,7 @@ import javafx.fxml.FXML;
|
|||
import javafx.scene.control.*;
|
||||
import javafx.util.Callback;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class ClosedTradesView extends ActivatableViewAndModel<ClosedTradesViewModel> {
|
||||
private static final Logger log = LoggerFactory.getLogger(ClosedTradesView.class);
|
||||
|
||||
@FXML TableColumn<ClosedTradesListItem, ClosedTradesListItem> priceColumn, amountColumn, volumeColumn,
|
||||
directionColumn, dateColumn, tradeIdColumn;
|
||||
|
|
|
@ -29,11 +29,7 @@ import javafx.scene.control.*;
|
|||
import javafx.scene.image.*;
|
||||
import javafx.util.Callback;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class OffersView extends ActivatableViewAndModel<OffersViewModel> {
|
||||
private static final Logger log = LoggerFactory.getLogger(OffersView.class);
|
||||
|
||||
@FXML TableColumn<OfferListItem, OfferListItem> priceColumn, amountColumn, volumeColumn,
|
||||
directionColumn, dateColumn, offerIdColumn, removeItemColumn;
|
||||
|
|
|
@ -26,14 +26,10 @@ import java.util.Date;
|
|||
|
||||
import javafx.beans.property.ObjectProperty;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* We could remove that wrapper if it is not needed for additional UI only fields.
|
||||
*/
|
||||
public class PendingTradesListItem {
|
||||
private static final Logger log = LoggerFactory.getLogger(PendingTradesListItem.class);
|
||||
|
||||
private final Trade trade;
|
||||
|
||||
|
|
|
@ -52,12 +52,7 @@ import javafx.scene.layout.*;
|
|||
import javafx.util.Callback;
|
||||
import javafx.util.StringConverter;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class PendingTradesView extends ActivatableViewAndModel<PendingTradesViewModel> {
|
||||
private static final Logger log = LoggerFactory.getLogger(PendingTradesView.class);
|
||||
|
||||
|
||||
private ChangeListener<PendingTradesListItem> selectedItemChangeListener;
|
||||
private ListChangeListener<PendingTradesListItem> listChangeListener;
|
||||
|
|
|
@ -24,16 +24,11 @@ import javax.inject.Inject;
|
|||
import javafx.fxml.FXML;
|
||||
import javafx.scene.control.*;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* This UI is not cached as it is normally only needed once.
|
||||
*/
|
||||
public class PreferencesView extends ActivatableViewAndModel<PreferencesViewModel> {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(PreferencesView.class);
|
||||
|
||||
@FXML ComboBox<String> btcDenominationComboBox;
|
||||
@FXML CheckBox useAnimationsCheckBox, useEffectsCheckBox;
|
||||
|
||||
|
|
|
@ -38,11 +38,7 @@ import javafx.collections.ListChangeListener;
|
|||
import javafx.scene.*;
|
||||
import javafx.scene.control.*;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class TradeView extends ActivatableView {
|
||||
private static final Logger log = LoggerFactory.getLogger(TradeView.class);
|
||||
|
||||
private OfferBookView offerBookView;
|
||||
private CreateOfferView createOfferView;
|
||||
|
|
|
@ -61,17 +61,11 @@ import org.controlsfx.control.action.AbstractAction;
|
|||
import org.controlsfx.control.action.Action;
|
||||
import org.controlsfx.dialog.Dialog;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import static javafx.beans.binding.Bindings.createStringBinding;
|
||||
|
||||
// TODO Implement other positioning method in InoutTextField to display it over the field instead of right side
|
||||
// priceAmountHBox is too large after redesign as to be used as layoutReference.
|
||||
|
||||
public class CreateOfferView extends ActivatableViewAndModel<CreateOfferViewModel> {
|
||||
private static final Logger log = LoggerFactory.getLogger(CreateOfferView.class);
|
||||
|
||||
|
||||
private final Navigation navigation;
|
||||
private final OverlayManager overlayManager;
|
||||
|
|
|
@ -51,9 +51,6 @@ import org.controlsfx.control.action.AbstractAction;
|
|||
import org.controlsfx.control.action.Action;
|
||||
import org.controlsfx.dialog.Dialog;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import static javafx.beans.binding.Bindings.createStringBinding;
|
||||
|
||||
/**
|
||||
|
@ -61,7 +58,6 @@ import static javafx.beans.binding.Bindings.createStringBinding;
|
|||
* The restrictions handling is open from the concept and is only implemented for countries yet.
|
||||
*/
|
||||
public class OfferBookView extends ActivatableViewAndModel<OfferBookViewModel> implements ChildView<TradeView> {
|
||||
private static final Logger log = LoggerFactory.getLogger(OfferBookView.class);
|
||||
|
||||
private final Navigation navigation;
|
||||
private final OverlayManager overlayManager;
|
||||
|
|
|
@ -62,11 +62,7 @@ import org.controlsfx.control.action.AbstractAction;
|
|||
import org.controlsfx.control.action.Action;
|
||||
import org.controlsfx.dialog.Dialog;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class TakeOfferView extends ActivatableViewAndModel<TakeOfferViewModel> {
|
||||
private static final Logger log = LoggerFactory.getLogger(TakeOfferView.class);
|
||||
|
||||
private final Navigation navigation;
|
||||
private final OverlayManager overlayManager;
|
||||
|
|
|
@ -32,11 +32,7 @@ import javafx.scene.effect.*;
|
|||
import javafx.scene.layout.*;
|
||||
import javafx.util.Duration;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class Transitions {
|
||||
private static final Logger log = LoggerFactory.getLogger(Transitions.class);
|
||||
|
||||
public final static int DEFAULT_DURATION = 400;
|
||||
|
||||
|
|
|
@ -17,12 +17,8 @@
|
|||
|
||||
package io.bitsquare.gui.util.validation;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
||||
public final class BankAccountNumberValidator extends InputValidator {
|
||||
private static final Logger log = LoggerFactory.getLogger(BankAccountNumberValidator.class);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Public methods
|
||||
|
|
|
@ -24,16 +24,12 @@ import org.bitcoinj.core.AddressFormatException;
|
|||
|
||||
import javax.inject.Inject;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* BtcValidator for validating BTC values.
|
||||
* <p>
|
||||
* That class implements just what we need for the moment. It is not intended as a general purpose library class.
|
||||
*/
|
||||
public final class BtcAddressValidator extends InputValidator {
|
||||
private static final Logger log = LoggerFactory.getLogger(BtcAddressValidator.class);
|
||||
|
||||
private final BitcoinNetwork bitcoinNetwork;
|
||||
|
||||
|
|
|
@ -23,17 +23,12 @@ import org.bitcoinj.core.NetworkParameters;
|
|||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* BtcValidator for validating BTC values.
|
||||
* <p>
|
||||
* That class implements just what we need for the moment. It is not intended as a general purpose library class.
|
||||
*/
|
||||
public final class BtcValidator extends NumberValidator {
|
||||
private static final Logger log = LoggerFactory.getLogger(BtcValidator.class);
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Public methods
|
||||
|
|
|
@ -23,16 +23,12 @@ import io.bitsquare.user.User;
|
|||
|
||||
import javax.inject.Inject;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* FiatNumberValidator for validating fiat values.
|
||||
* <p>
|
||||
* That class implements just what we need for the moment. It is not intended as a general purpose library class.
|
||||
*/
|
||||
public final class FiatValidator extends NumberValidator {
|
||||
private static final Logger log = LoggerFactory.getLogger(FiatValidator.class);
|
||||
|
||||
//TODO Find appropriate values - depends on currencies
|
||||
public static final double MIN_FIAT_VALUE = 0.01; // usually a cent is the smallest currency unit
|
||||
|
|
|
@ -19,16 +19,12 @@ package io.bitsquare.gui.util.validation;
|
|||
|
||||
import io.bitsquare.locale.BSResources;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* Base class for other specialized validators.
|
||||
* <p>
|
||||
* That class implements just what we need for the moment. It is not intended as a general purpose library class.
|
||||
*/
|
||||
public class InputValidator {
|
||||
private static final Logger log = LoggerFactory.getLogger(InputValidator.class);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Public methods
|
||||
|
|
|
@ -19,9 +19,6 @@ package io.bitsquare.gui.util.validation;
|
|||
|
||||
import io.bitsquare.locale.BSResources;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* NumberValidator for validating basic number values.
|
||||
* Localisation not supported at the moment
|
||||
|
@ -31,8 +28,6 @@ import org.slf4j.LoggerFactory;
|
|||
* That class implements just what we need for the moment. It is not intended as a general purpose library class.
|
||||
*/
|
||||
public abstract class NumberValidator extends InputValidator {
|
||||
private static final Logger log = LoggerFactory.getLogger(NumberValidator.class);
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Protected methods
|
||||
|
|
|
@ -23,16 +23,12 @@ import org.bitcoinj.core.NetworkParameters;
|
|||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* BtcValidator for validating BTC values.
|
||||
* <p>
|
||||
* That class implements just what we need for the moment. It is not intended as a general purpose library class.
|
||||
*/
|
||||
public final class OptionalBtcValidator extends NumberValidator {
|
||||
private static final Logger log = LoggerFactory.getLogger(OptionalBtcValidator.class);
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -23,16 +23,12 @@ import io.bitsquare.user.User;
|
|||
|
||||
import javax.inject.Inject;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* FiatNumberValidator for validating fiat values.
|
||||
* <p>
|
||||
* That class implements just what we need for the moment. It is not intended as a general purpose library class.
|
||||
*/
|
||||
public final class OptionalFiatValidator extends NumberValidator {
|
||||
private static final Logger log = LoggerFactory.getLogger(OptionalFiatValidator.class);
|
||||
|
||||
//TODO Find appropriate values - depends on currencies
|
||||
public static final double MIN_FIAT_VALUE = 0.01; // usually a cent is the smallest currency unit
|
||||
|
|
|
@ -19,11 +19,7 @@ package io.bitsquare.gui.util.validation;
|
|||
|
||||
import io.bitsquare.locale.BSResources;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public final class PasswordValidator extends InputValidator {
|
||||
private static final Logger log = LoggerFactory.getLogger(PasswordValidator.class);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Public methods
|
||||
|
|
|
@ -27,11 +27,7 @@ import java.util.Locale;
|
|||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class CountryUtil {
|
||||
private static final Logger log = LoggerFactory.getLogger(CountryUtil.class);
|
||||
|
||||
private static final String[] countryCodes = new String[]{"AE", "AL", "AR", "AT", "AU", "BA", "BE", "BG", "BH",
|
||||
"BO", "BR", "BY", "CA", "CH", "CL", "CN", "CO", "CR", "CS", "CU", "CY", "CZ", "DE", "DK", "DO", "DZ",
|
||||
|
|
|
@ -33,12 +33,8 @@ import javafx.beans.property.SimpleBooleanProperty;
|
|||
import javafx.beans.property.SimpleStringProperty;
|
||||
import javafx.beans.property.StringProperty;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class Preferences implements Serializable {
|
||||
private static final long serialVersionUID = 7995048077355006861L;
|
||||
private static final Logger log = LoggerFactory.getLogger(Preferences.class);
|
||||
|
||||
// deactivate mBit for now as most screens are not supporting it yet
|
||||
private List<String> btcDenominations = Arrays.asList(MonetaryFormat.CODE_BTC/*, MonetaryFormat.CODE_MBTC*/);
|
||||
|
|
|
@ -36,15 +36,11 @@ import javafx.collections.FXCollections;
|
|||
import javafx.collections.ListChangeListener;
|
||||
import javafx.collections.ObservableList;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* The User is persisted locally.
|
||||
* It must never be transmitted over the wire (messageKeyPair contains private key!).
|
||||
*/
|
||||
public class User implements Serializable {
|
||||
private static final Logger log = LoggerFactory.getLogger(User.class);
|
||||
private static final long serialVersionUID = 7409078808248518638L;
|
||||
|
||||
private KeyPair messageKeyPair;
|
||||
|
|
|
@ -19,16 +19,12 @@ package io.bitsquare.util;
|
|||
|
||||
import org.bitcoinj.core.Coin;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import static com.google.common.base.Preconditions.*;
|
||||
|
||||
/**
|
||||
* Utility class for validating domain data.
|
||||
*/
|
||||
public class Validator {
|
||||
private static final Logger log = LoggerFactory.getLogger(Validator.class);
|
||||
|
||||
public static String nonEmptyStringOf(String value) {
|
||||
checkNotNull(value);
|
||||
|
|
|
@ -32,13 +32,9 @@ import java.util.Locale;
|
|||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
public class CreateOfferViewModelTest {
|
||||
private static final Logger log = LoggerFactory.getLogger(CreateOfferViewModelTest.class);
|
||||
|
||||
private CreateOfferDataModel model;
|
||||
private CreateOfferViewModel presenter;
|
||||
|
|
|
@ -25,13 +25,9 @@ import java.util.Locale;
|
|||
|
||||
import org.junit.Test;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
public class BSFormatterTest {
|
||||
private static final Logger log = LoggerFactory.getLogger(BSFormatterTest.class);
|
||||
|
||||
@Test
|
||||
public void testParseToBtc() {
|
||||
|
|
|
@ -43,9 +43,6 @@ import org.junit.Assert;
|
|||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
// TODO Reactivate tests when TomP2PNode is using original code again. we deactivated the security features atm.
|
||||
|
@ -53,7 +50,6 @@ import static org.junit.Assert.*;
|
|||
// investigate what has broken it, probably from update to latest head
|
||||
@Ignore
|
||||
public class TomP2PNodeTest {
|
||||
private static final Logger log = LoggerFactory.getLogger(TomP2PNodeTest.class);
|
||||
|
||||
final private static Random rnd = new Random(42L);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue