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

src/java/org/mxchange/jjobs/beans/localization/JobsLocalizationSessionBean.java

index c3ea25884cae4456f66cdb9cf5dbdfbf16eaa2c2..3a0774cf6410c69944c4fc6f87801e0e4946562e 100644 (file)
@@ -166,12 +166,12 @@ public class JobsLocalizationSessionBean extends BaseJobsBean implements JobsLoc
 
                // 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;
                        }
                }