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 ea7330b2 Use /=
ea7330b2 is described below
commit ea7330b23aa1b970541c6ccdd310859c8b1c697b
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Jan 15 09:32:02 2024 -0500
Use /=
---
.../apache/commons/validator/routines/checkdigit/ModulusCheckDigit.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/src/main/java/org/apache/commons/validator/routines/checkdigit/ModulusCheckDigit.java
b/src/main/java/org/apache/commons/validator/routines/checkdigit/ModulusCheckDigit.java
index 9fcbd7d3..bf266dd0 100644
---
a/src/main/java/org/apache/commons/validator/routines/checkdigit/ModulusCheckDigit.java
+++
b/src/main/java/org/apache/commons/validator/routines/checkdigit/ModulusCheckDigit.java
@@ -47,7 +47,7 @@ public abstract class ModulusCheckDigit implements
CheckDigit, Serializable {
int todo = number;
while (todo > 0) {
total += todo % 10; // CHECKSTYLE IGNORE MagicNumber
- todo = todo / 10; // CHECKSTYLE IGNORE MagicNumber
+ todo /= 10; // CHECKSTYLE IGNORE MagicNumber
}
return total;
}