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 f322ed2 Diamonds are from 1.7 f322ed2 is described below commit f322ed28c7ce7f5525589695499bd3df0922529d Author: Sebb <s...@apache.org> AuthorDate: Tue Jul 28 13:59:23 2020 +0100 Diamonds are from 1.7 --- src/main/java/org/apache/commons/validator/routines/UrlValidator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/validator/routines/UrlValidator.java b/src/main/java/org/apache/commons/validator/routines/UrlValidator.java index 4104ff2..11e69b9 100644 --- a/src/main/java/org/apache/commons/validator/routines/UrlValidator.java +++ b/src/main/java/org/apache/commons/validator/routines/UrlValidator.java @@ -253,7 +253,7 @@ public class UrlValidator implements Serializable { if (schemes == null) { schemes = DEFAULT_SCHEMES; } - allowedSchemes = new HashSet<String>(schemes.length); + allowedSchemes = new HashSet<>(schemes.length); for(int i=0; i < schemes.length; i++) { allowedSchemes.add(schemes[i].toLowerCase(Locale.ENGLISH)); }