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


The following commit(s) were added to refs/heads/master by this push:
     new c0cdca57 Use %=
c0cdca57 is described below

commit c0cdca5792a54f7a02ea7445babcf841802bc0c2
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Mon Jan 15 09:39:00 2024 -0500

    Use %=
---
 .../apache/commons/validator/routines/checkdigit/IBANCheckDigit.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigit.java
 
b/src/main/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigit.java
index 5029611a..073c61d1 100644
--- 
a/src/main/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigit.java
+++ 
b/src/main/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigit.java
@@ -101,7 +101,7 @@ public final class IBANCheckDigit implements CheckDigit, 
Serializable {
             }
             total = (charValue > 9 ? total * 100 : total * 10) + charValue; // 
CHECKSTYLE IGNORE MagicNumber
             if (total > MAX) {
-                total = total % MODULUS;
+                total %= MODULUS;
             }
         }
         return (int) (total % MODULUS);

Reply via email to