wallettemplate: mark fields as final

This commit fixes every IntelliJ warning about fields being final for
the wallettemplate module.
This commit is contained in:
Sean Gilligan 2023-09-07 15:34:42 -07:00 committed by Andreas Schildbach
parent 7a1135246c
commit 6fc1087aba
6 changed files with 12 additions and 12 deletions

View File

@ -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) {

View File

@ -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;

View File

@ -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() {
}

View File

@ -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.

View File

@ -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.

View File

@ -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) {