From: Roland Häder Date: Sun, 23 Oct 2022 18:59:32 +0000 (+0200) Subject: Please cherry-pick X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bc94350284e0d168fa063da3aa0cfddab572e88a;p=pizzaservice-war.git Please cherry-pick - renamed foundLocale -> currentLocale because getValue() returns the iterator's current value --- diff --git a/src/java/org/mxchange/pizzaapplication/beans/localization/PizzaLocalizationSessionBean.java b/src/java/org/mxchange/pizzaapplication/beans/localization/PizzaLocalizationSessionBean.java index 6b8b4d4c..dcb61617 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/localization/PizzaLocalizationSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/localization/PizzaLocalizationSessionBean.java @@ -160,12 +160,12 @@ public class PizzaLocalizationSessionBean extends BasePizzaBean implements Pizza // 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; } }