You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/02/04 19:10:41 UTC

(commons-validator) 09/19: Use final

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-validator.git

commit 05392de7557b7fc5251a56fcc0224e4260b62d6c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Feb 4 14:08:30 2024 -0500

    Use final
---
 .../java/org/apache/commons/validator/routines/IBANValidator.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/validator/routines/IBANValidator.java b/src/main/java/org/apache/commons/validator/routines/IBANValidator.java
index 42282efb..4db944d9 100644
--- a/src/main/java/org/apache/commons/validator/routines/IBANValidator.java
+++ b/src/main/java/org/apache/commons/validator/routines/IBANValidator.java
@@ -102,7 +102,7 @@ public class IBANValidator {
             this.otherCountryCodes = otherCountryCodes.clone();
             final List<String> regexList = new ArrayList<>(this.otherCountryCodes.length + 1);
             regexList.add(countryCode + regexWithoutCC);
-            for (String otherCc : otherCountryCodes) {
+            for (final String otherCc : otherCountryCodes) {
                 regexList.add(otherCc + regexWithoutCC);
             }
             this.ibanLength = ibanLength;
@@ -269,7 +269,7 @@ public class IBANValidator {
         final ConcurrentMap<String, Validator> map = new ConcurrentHashMap<>();
         for (final Validator validator : validators) {
             map.put(validator.countryCode, validator);
-            for (String otherCC : validator.otherCountryCodes) {
+            for (final String otherCC : validator.otherCountryCodes) {
                 map.put(otherCC, validator);
             }
         }