From 7af54622e4aba62ca5f1a3488ef12b9b7488401d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 23 Oct 2022 20:59:32 +0200 Subject: [PATCH] Please cherry-pick - renamed foundLocale -> currentLocale because getValue() returns the iterator's current value --- .../localization/FinancialsLocalizationSessionBean.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/org/mxchange/jfinancials/beans/localization/FinancialsLocalizationSessionBean.java b/src/java/org/mxchange/jfinancials/beans/localization/FinancialsLocalizationSessionBean.java index 5f6f3d4a..d2a1ca39 100644 --- a/src/java/org/mxchange/jfinancials/beans/localization/FinancialsLocalizationSessionBean.java +++ b/src/java/org/mxchange/jfinancials/beans/localization/FinancialsLocalizationSessionBean.java @@ -166,12 +166,12 @@ public class FinancialsLocalizationSessionBean extends BaseFinancialsBean implem // Iterate over whole map for (final Map.Entry entry : this.getSupportedLocales().entrySet()) { - final Locale foundLocale = entry.getValue(); + final Locale currentLocale = entry.getValue(); // Does the language match? - if (Objects.equals(foundLocale.toString(), this.getLocaleCode())) { + if (Objects.equals(currentLocale.toString(), this.getLocaleCode())) { // Is found, take it as request locale - newLocale = foundLocale; + newLocale = currentLocale; break; } } -- 2.39.5