mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-19 01:40:26 +01:00
wallettemplate: mark fields as final
This commit fixes every IntelliJ warning about fields being final for the wallettemplate module.
This commit is contained in:
parent
7a1135246c
commit
6fc1087aba
@ -29,7 +29,7 @@ import org.bitcoinj.walletfx.utils.TextFieldValidator;
|
||||
*/
|
||||
public class BitcoinAddressValidator {
|
||||
private final AddressParser parser;
|
||||
private Node[] nodes;
|
||||
private final Node[] nodes;
|
||||
|
||||
|
||||
public BitcoinAddressValidator(AddressParser parser, TextField field, Node... nodes) {
|
||||
|
@ -48,10 +48,10 @@ public class NotificationBarPane extends BorderPane {
|
||||
public static final Duration ANIM_IN_DURATION = GuiUtils.UI_ANIMATION_TIME.multiply(2);
|
||||
public static final Duration ANIM_OUT_DURATION = GuiUtils.UI_ANIMATION_TIME;
|
||||
|
||||
private HBox bar;
|
||||
private Label label;
|
||||
private final HBox bar;
|
||||
private final Label label;
|
||||
private double barHeight;
|
||||
private ProgressBar progressBar;
|
||||
private final ProgressBar progressBar;
|
||||
|
||||
public class Item {
|
||||
public final SimpleStringProperty label;
|
||||
|
@ -33,10 +33,10 @@ import java.util.Date;
|
||||
* A class that exposes relevant bitcoin stuff as JavaFX bindable properties.
|
||||
*/
|
||||
public class BitcoinUIModel {
|
||||
private SimpleObjectProperty<Address> address = new SimpleObjectProperty<>();
|
||||
private SimpleObjectProperty<Coin> balance = new SimpleObjectProperty<>(Coin.ZERO);
|
||||
private SimpleDoubleProperty syncProgress = new SimpleDoubleProperty(-1);
|
||||
private ProgressBarUpdater syncProgressUpdater = new ProgressBarUpdater();
|
||||
private final SimpleObjectProperty<Address> address = new SimpleObjectProperty<>();
|
||||
private final SimpleObjectProperty<Coin> balance = new SimpleObjectProperty<>(Coin.ZERO);
|
||||
private final SimpleDoubleProperty syncProgress = new SimpleDoubleProperty(-1);
|
||||
private final ProgressBarUpdater syncProgressUpdater = new ProgressBarUpdater();
|
||||
|
||||
public BitcoinUIModel() {
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ public abstract class EasingInterpolator extends Interpolator {
|
||||
/**
|
||||
* The easing mode.
|
||||
*/
|
||||
private ObjectProperty<EasingMode> easingMode = new SimpleObjectProperty<>(EasingMode.EASE_OUT);
|
||||
private final ObjectProperty<EasingMode> easingMode = new SimpleObjectProperty<>(EasingMode.EASE_OUT);
|
||||
|
||||
/**
|
||||
* Constructs the interpolator with a specific easing mode.
|
||||
|
@ -49,12 +49,12 @@ public class ElasticInterpolator extends EasingInterpolator {
|
||||
/**
|
||||
* The amplitude.
|
||||
*/
|
||||
private DoubleProperty amplitude = new SimpleDoubleProperty(this, "amplitude", 1);
|
||||
private final DoubleProperty amplitude = new SimpleDoubleProperty(this, "amplitude", 1);
|
||||
|
||||
/**
|
||||
* The number of oscillations.
|
||||
*/
|
||||
private DoubleProperty oscillations = new SimpleDoubleProperty(this, "oscillations", 3);
|
||||
private final DoubleProperty oscillations = new SimpleDoubleProperty(this, "oscillations", 3);
|
||||
|
||||
/**
|
||||
* Default constructor. Initializes the interpolator with ease out mode.
|
||||
|
@ -61,7 +61,7 @@ public class WalletPasswordController implements OverlayController<WalletPasswor
|
||||
private OverlayableStackPaneController rootController;
|
||||
private OverlayableStackPaneController.OverlayUI<? extends OverlayController<WalletPasswordController>> overlayUI;
|
||||
|
||||
private SimpleObjectProperty<AesKey> aesKey = new SimpleObjectProperty<>();
|
||||
private final SimpleObjectProperty<AesKey> aesKey = new SimpleObjectProperty<>();
|
||||
|
||||
@Override
|
||||
public void initOverlay(OverlayableStackPaneController overlayableStackPaneController, OverlayableStackPaneController.OverlayUI<? extends OverlayController<WalletPasswordController>> ui) {
|
||||
|
Loading…
Reference in New Issue
Block a user