]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Please cherry-pick
authorRoland Häder <roland@mxchange.org>
Sun, 23 Oct 2022 18:59:32 +0000 (20:59 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 23 Oct 2022 19:00:20 +0000 (21:00 +0200)
- renamed foundLocale -> currentLocale because getValue() returns the iterator's
  current value

src/java/org/mxchange/pizzaapplication/beans/localization/PizzaLocalizationSessionBean.java

index 6b8b4d4cfb3a4801870c45f295115491abbde36c..dcb616175620590444b4b247a82550d2292b4046 100644 (file)
@@ -160,12 +160,12 @@ public class PizzaLocalizationSessionBean extends BasePizzaBean implements Pizza
 
                // Iterate over whole map
                for (final Map.Entry<String, Locale> 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;
                        }
                }