]> git.mxchange.org Git - addressbook-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:19 +0000 (21:00 +0200)
- renamed foundLocale -> currentLocale because getValue() returns the iterator's
  current value

src/java/org/mxchange/addressbook/beans/localization/AddressbookLocalizationSessionBean.java

index 1e73124b27d944712d164743a944de23bce52eb3..75b40690bfbb0f2a53d5dd538f5a1c74c1991df8 100644 (file)
@@ -160,12 +160,12 @@ public class AddressbookLocalizationSessionBean extends BaseAddressbookBean impl
 
                // 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;
                        }
                }