This is an automated email from the ASF dual-hosted git repository. garydgregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-validator.git
commit bc2f6a44faa4cb8dd7d865c6085cf17303b24190 Author: Gary Gregory <[email protected]> AuthorDate: Sat Jul 11 07:19:07 2026 -0400 Use vararg --- .../org/apache/commons/validator/routines/RegexValidatorTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/validator/routines/RegexValidatorTest.java b/src/test/java/org/apache/commons/validator/routines/RegexValidatorTest.java index 16e0f982..35f54821 100644 --- a/src/test/java/org/apache/commons/validator/routines/RegexValidatorTest.java +++ b/src/test/java/org/apache/commons/validator/routines/RegexValidatorTest.java @@ -106,10 +106,10 @@ class RegexValidatorTest { e = assertThrows(IllegalArgumentException.class, RegexValidator::new, "Zero Length Array"); assertEquals("Regular expressions are missing", e.getMessage(), "Zero Length Array"); // Multiple Regular Expression - Array has Null - e = assertThrows(IllegalArgumentException.class, () -> new RegexValidator(new String[] { "ABC", null }), "Array has Null"); + e = assertThrows(IllegalArgumentException.class, () -> new RegexValidator("ABC", null), "Array has Null"); assertEquals("Regular expression[1] is missing", e.getMessage(), "Array has Null"); // Multiple Regular Expression - Array has Zero Length - e = assertThrows(IllegalArgumentException.class, () -> new RegexValidator(new String[] { "", "ABC" }), "Array has Zero Length"); + e = assertThrows(IllegalArgumentException.class, () -> new RegexValidator("", "ABC"), "Array has Zero Length"); assertEquals("Regular expression[0] is missing", e.getMessage(), "Array has Zero Length"); }
