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 37c3b791 Remove Java 6 conditional 37c3b791 is described below commit 37c3b791b8f96970e598b7b8374d2351228c2ede Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Oct 6 10:05:20 2024 -0400 Remove Java 6 conditional --- .../org/apache/commons/validator/routines/DomainValidatorTest.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java b/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java index 92531bc5..6a489344 100644 --- a/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java +++ b/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java @@ -459,11 +459,7 @@ public class DomainValidatorTest { @Test public void testIDNJava6OrLater() { - final String version = SystemProperties.getJavaVersion(); - if (version.compareTo("1.6") < 0) { - System.out.println("Cannot run Unicode IDN tests"); - return; // Cannot run the test - } // xn--d1abbgf6aiiy.xn--p1ai http://президент.рф + // xn--d1abbgf6aiiy.xn--p1ai http://президент.рф assertTrue(validator.isValid("www.b\u00fccher.ch"), "b\u00fccher.ch should validate"); assertTrue(validator.isValid("xn--d1abbgf6aiiy.xn--p1ai"), "xn--d1abbgf6aiiy.xn--p1ai should validate"); assertTrue(validator.isValid("президент.рф"), "президент.рф should validate");