diff --git a/src/main/java/bisq/desktop/main/account/content/notifications/NotificationsView.java b/src/main/java/bisq/desktop/main/account/content/notifications/NotificationsView.java index 2ebd272dc7..fa75c2591c 100644 --- a/src/main/java/bisq/desktop/main/account/content/notifications/NotificationsView.java +++ b/src/main/java/bisq/desktop/main/account/content/notifications/NotificationsView.java @@ -257,7 +257,7 @@ public class NotificationsView extends ActivatableView { message = MyOfferTakenEvents.getTestMsg(); break; case 1: - messages = TradeEvents.getTestMsgs(); + messages = TradeEvents.getTestMessages(); break; case 2: message = DisputeMsgEvents.getTestMsg(); @@ -348,7 +348,7 @@ public class NotificationsView extends ActivatableView { private void createPriceAlertFields() { FormBuilder.addTitledGroupBg(root, ++gridRow, 3, Res.get("account.notifications.priceAlert.title"), Layout.GROUP_DISTANCE); - currencyComboBox = FormBuilder.addLabelComboBox(root, gridRow, Res.get("list.currency.select"), Layout.FIRST_ROW_AND_GROUP_DISTANCE).second; + currencyComboBox = FormBuilder.addLabelComboBox(root, gridRow, Res.get("list.currency.select"), Layout.FIRST_ROW_AND_GROUP_DISTANCE).second; currencyComboBox.setPromptText(Res.get("list.currency.select")); currencyComboBox.setConverter(new StringConverter() { @Override diff --git a/src/main/java/bisq/desktop/main/account/content/notifications/QrCodeReader.java b/src/main/java/bisq/desktop/main/account/content/notifications/QrCodeReader.java index e777fe35ff..20fc7bb1e3 100644 --- a/src/main/java/bisq/desktop/main/account/content/notifications/QrCodeReader.java +++ b/src/main/java/bisq/desktop/main/account/content/notifications/QrCodeReader.java @@ -42,10 +42,10 @@ import javafx.embed.swing.SwingFXUtils; @Slf4j // Must not be UI thread -public class QrCodeReader extends Thread { - private Webcam webCam; - private ImageView imageView; - private Consumer resultHandler; +class QrCodeReader extends Thread { + private final Webcam webCam; + private final ImageView imageView; + private final Consumer resultHandler; private boolean isRunning; public QrCodeReader(Webcam webCam, ImageView imageView, Consumer resultHandler) { diff --git a/src/main/java/bisq/desktop/main/account/content/notifications/WebCamLauncher.java b/src/main/java/bisq/desktop/main/account/content/notifications/WebCamLauncher.java index 3c4e456ee4..f742d34a9b 100644 --- a/src/main/java/bisq/desktop/main/account/content/notifications/WebCamLauncher.java +++ b/src/main/java/bisq/desktop/main/account/content/notifications/WebCamLauncher.java @@ -32,8 +32,8 @@ import com.github.sarxos.webcam.Webcam; @Slf4j // Must not be UI thread -public class WebCamLauncher extends Thread { - private Consumer resultHandler; +class WebCamLauncher extends Thread { + private final Consumer resultHandler; public WebCamLauncher(Consumer resultHandler) { this.resultHandler = resultHandler;