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 e815734 Use String.replace() instead of replaceAll() when we don't need a Regex. e815734 is described below commit e815734c7462d7aa60d61679bc430eb1f8ff9577 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Feb 28 18:42:49 2021 -0500 Use String.replace() instead of replaceAll() when we don't need a Regex. --- .../commons/validator/routines/checkdigit/IBANCheckDigitTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java b/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java index da7f0e9..b5d12cf 100644 --- a/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java +++ b/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java @@ -238,9 +238,9 @@ public class IBANCheckDigitTest extends AbstractCheckDigitTest { if (!line.startsWith("#") && !line.isEmpty()) { if (line.startsWith("-")) { line = line.substring(1); - Assert.assertFalse(line, routine.isValid(line.replaceAll(" ", ""))); + Assert.assertFalse(line, routine.isValid(line.replace(" ", ""))); } else { - Assert.assertTrue(line, routine.isValid(line.replaceAll(" ", ""))); + Assert.assertTrue(line, routine.isValid(line.replace(" ", ""))); } } }