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
commit c73728fffa28f84853ab61c7f6f05849155313f1 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Jul 21 11:02:26 2024 -0400 Javadoc --- .../org/apache/commons/validator/routines/EmailValidator.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/validator/routines/EmailValidator.java b/src/main/java/org/apache/commons/validator/routines/EmailValidator.java index ff0dc63e..e2e952f4 100644 --- a/src/main/java/org/apache/commons/validator/routines/EmailValidator.java +++ b/src/main/java/org/apache/commons/validator/routines/EmailValidator.java @@ -96,11 +96,10 @@ public class EmailValidator implements Serializable { } /** - * Returns the Singleton instance of this validator, - * with local validation as required. + * Returns the Singleton instance of this validator, with local validation as required. * * @param allowLocal Should local addresses be considered valid? - * @param allowTld Should TLDs be allowed? + * @param allowTld Should TLDs be allowed? * @return singleton instance of this validator */ public static EmailValidator getInstance(final boolean allowLocal, final boolean allowTld) { @@ -116,8 +115,14 @@ public class EmailValidator implements Serializable { return EMAIL_VALIDATOR; } + /** + * Whether to allow TLDs. + */ private final boolean allowTld; + /** + * The domain validator. + */ private final DomainValidator domainValidator; /**