This is an automated email from the ASF dual-hosted git repository. sebb 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 25bd912d Ch**ckstyle 25bd912d is described below commit 25bd912d56b87fa3a49570be733d706ddf06e2b6 Author: Sebb <s...@apache.org> AuthorDate: Sun Dec 29 15:54:35 2024 +0000 Ch**ckstyle --- .../org/apache/commons/validator/routines/IBANValidatorTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java b/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java index 5abf3d97..8a87654a 100644 --- a/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java +++ b/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java @@ -78,9 +78,9 @@ public class IBANValidatorTest { */ private static final String IBAN_REGISTRY = "iban_registry_v99.txt"; private static final Charset IBAN_REGISTRY_CHARSET = Charset.forName("windows-1252"); - private static final int MS_PER_DAY = 1000*60*60*24; + private static final int MS_PER_DAY = 1000 * 60 * 60 * 24; private static final long MAX_AGE_DAYS = 180; // how old registry can get (approx 6 months) - + // It's not clear whether IBANs can contain lower case characters @@ -369,13 +369,13 @@ public class IBANValidatorTest { for (int i = 1; i < country.size(); i++) { result.add(Arguments.of(country.get(i), electronicExample.get(i))); final String mmyy = lastUpdateDate.get(i); - final Date dt = DateValidator.getInstance().validate(mmyy,"MMM-yy",Locale.ROOT); + final Date dt = DateValidator.getInstance().validate(mmyy, "MMM-yy", Locale.ROOT); if (dt.after(lastDate)) { lastDate = dt; lastUpdated = mmyy; } } - final long age = (new Date().getTime() - lastDate.getTime())/MS_PER_DAY; + final long age = (new Date().getTime() - lastDate.getTime()) / MS_PER_DAY; if (age > MAX_AGE_DAYS) { // not necessarily a failure System.out.println("WARNING: expected recent last update date, but found: " + lastUpdated); }