]> git.mxchange.org Git - jfinancials-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 18:59:32 +0000 (20:59 +0200)
- renamed foundLocale -> currentLocale because getValue() returns the iterator's
  current value

src/java/org/mxchange/jfinancials/beans/localization/FinancialsLocalizationSessionBean.java

index 5f6f3d4af33de489ae25a70c24885dccc693671e..d2a1ca39868f181b4e2718b9f8fd245c0d38c655 100644 (file)
@@ -166,12 +166,12 @@ public class FinancialsLocalizationSessionBean extends BaseFinancialsBean implem
 
                // 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;
                        }
                }