diff --git a/desktop/src/main/java/bisq/desktop/main/offer/MutableOfferView.java b/desktop/src/main/java/bisq/desktop/main/offer/MutableOfferView.java index 9069c13c40e..5fe257ebe36 100644 --- a/desktop/src/main/java/bisq/desktop/main/offer/MutableOfferView.java +++ b/desktop/src/main/java/bisq/desktop/main/offer/MutableOfferView.java @@ -323,7 +323,7 @@ public void initWithData(OfferPayload.Direction direction, TradeCurrency tradeCu showInsufficientBsqFundsForBtcFeePaymentPopup(); } - // called form parent as the view does not get notified when the tab is closed + // called from parent as the view does not get notified when the tab is closed public void onClose() { // we use model.placeOfferCompleted to not react on close which was triggered by a successful placeOffer if (model.getDataModel().getBalance().get().isPositive() && !model.placeOfferCompleted.get()) { diff --git a/desktop/src/main/java/bisq/desktop/main/offer/OfferView.java b/desktop/src/main/java/bisq/desktop/main/offer/OfferView.java index 9879e234bf5..ae2cf03f870 100644 --- a/desktop/src/main/java/bisq/desktop/main/offer/OfferView.java +++ b/desktop/src/main/java/bisq/desktop/main/offer/OfferView.java @@ -223,7 +223,7 @@ public void onTakeOffer(Offer offer) { // in different graphs takeOfferView = (TakeOfferView) view; takeOfferView.initWithData(offer); - takeOfferPane = ((TakeOfferView) view).getRoot(); + takeOfferPane = takeOfferView.getRoot(); takeOfferTab = new Tab(getTakeOfferTabName()); takeOfferTab.setClosable(true); // close handler from close on take offer action @@ -252,7 +252,7 @@ private String getArbitrationLanguages() { return arbitratorManager.getObservableMap().values().stream() .flatMap(arbitrator -> arbitrator.getLanguageCodes().stream()) .distinct() - .map(languageCode -> LanguageUtil.getDisplayName(languageCode)) + .map(LanguageUtil::getDisplayName) .collect(Collectors.joining(", ")); }