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 19d83677 Fix typos in Javadoc 19d83677 is described below commit 19d836775fb9e919b64bdd128d0f7b8f912df4a6 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Aug 30 08:52:10 2022 -0400 Fix typos in Javadoc --- .../org/apache/commons/validator/GenericValidator.java | 2 +- .../org/apache/commons/validator/UrlValidator.java | 18 +++++++++--------- .../commons/validator/routines/UrlValidator.java | 18 +++++++++--------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/main/java/org/apache/commons/validator/GenericValidator.java b/src/main/java/org/apache/commons/validator/GenericValidator.java index 788bebd6..13b536fa 100644 --- a/src/main/java/org/apache/commons/validator/GenericValidator.java +++ b/src/main/java/org/apache/commons/validator/GenericValidator.java @@ -260,7 +260,7 @@ public class GenericValidator implements Serializable { } /** - * <p>Checks if a field is a valid url address.</p> + * <p>Checks if a field is a valid URL address.</p> * If you need to modify what is considered valid then * consider using the UrlValidator directly. * diff --git a/src/main/java/org/apache/commons/validator/UrlValidator.java b/src/main/java/org/apache/commons/validator/UrlValidator.java index b9306dcd..d9cb88b5 100644 --- a/src/main/java/org/apache/commons/validator/UrlValidator.java +++ b/src/main/java/org/apache/commons/validator/UrlValidator.java @@ -48,22 +48,22 @@ import org.apache.commons.validator.util.Flags; * String[] schemes = {"http","https"}. * UrlValidator urlValidator = new UrlValidator(schemes); * if (urlValidator.isValid("ftp://foo.bar.com/")) { - * System.out.println("url is valid"); + * System.out.println("URL is valid"); * } else { - * System.out.println("url is invalid"); + * System.out.println("URL is invalid"); * } * - * prints "url is invalid" + * prints "URL is invalid" * If instead the default constructor is used. * * UrlValidator urlValidator = new UrlValidator(); * if (urlValidator.isValid("ftp://foo.bar.com/")) { - * System.out.println("url is valid"); + * System.out.println("URL is valid"); * } else { - * System.out.println("url is invalid"); + * System.out.println("URL is invalid"); * } * - * prints out "url is valid" + * prints out "URL is valid" * </pre> * * @see @@ -192,7 +192,7 @@ public class UrlValidator implements Serializable { /** * Behavior of validation is modified by passing in several strings options: - * @param schemes Pass in one or more url schemes to consider valid, passing in + * @param schemes Pass in one or more URL schemes to consider valid, passing in * a null will default to "http,https,ftp" being valid. * If a non-null schemes is specified then all valid schemes must * be specified. Setting the ALLOW_ALL_SCHEMES option will @@ -234,11 +234,11 @@ public class UrlValidator implements Serializable { } /** - * <p>Checks if a field has a valid url address.</p> + * <p>Checks if a field has a valid URL address.</p> * * @param value The value validation is being performed on. A <code>null</code> * value is considered invalid. - * @return true if the url is valid. + * @return true if the URL is valid. */ public boolean isValid(final String value) { if (value == null) { 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 00230c1b..de59ee5f 100644 --- a/src/main/java/org/apache/commons/validator/routines/UrlValidator.java +++ b/src/main/java/org/apache/commons/validator/routines/UrlValidator.java @@ -48,22 +48,22 @@ import java.util.regex.Pattern; * String[] schemes = {"http","https"}. * UrlValidator urlValidator = new UrlValidator(schemes); * if (urlValidator.isValid("ftp://foo.bar.com/")) { - * System.out.println("url is valid"); + * System.out.println("URL is valid"); * } else { - * System.out.println("url is invalid"); + * System.out.println("URL is invalid"); * } * - * prints "url is invalid" + * prints "URL is invalid" * If instead the default constructor is used. * * UrlValidator urlValidator = new UrlValidator(); * if (urlValidator.isValid("ftp://foo.bar.com/")) { - * System.out.println("url is valid"); + * System.out.println("URL is valid"); * } else { - * System.out.println("url is invalid"); + * System.out.println("URL is invalid"); * } * - * prints out "url is valid" + * prints out "URL is valid" * </pre> * * @see @@ -193,7 +193,7 @@ public class UrlValidator implements Serializable { /** * Behavior of validation is modified by passing in several strings options: - * @param schemes Pass in one or more url schemes to consider valid, passing in + * @param schemes Pass in one or more URL schemes to consider valid, passing in * a null will default to "http,https,ftp" being valid. * If a non-null schemes is specified then all valid schemes must * be specified. Setting the ALLOW_ALL_SCHEMES option will @@ -287,14 +287,14 @@ public class UrlValidator implements Serializable { } /** - * <p>Checks if a field has a valid url address.</p> + * <p>Checks if a field has a valid URL address.</p> * * Note that the method calls #isValidAuthority() * which checks that the domain is valid. * * @param value The value validation is being performed on. A <code>null</code> * value is considered invalid. - * @return true if the url is valid. + * @return true if the URL is valid. */ public boolean isValid(final String value) { if (value == null) {