You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/08/22 14:10:43 UTC

[commons-validator] branch master updated: Fix formatting

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 7b72b11b Fix formatting
7b72b11b is described below

commit 7b72b11b380d0ab33c7bc70be65a7eb9a79df782
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Aug 22 10:10:38 2023 -0400

    Fix formatting
---
 .../java/org/apache/commons/validator/routines/DomainValidator.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/validator/routines/DomainValidator.java b/src/main/java/org/apache/commons/validator/routines/DomainValidator.java
index e3add0b9..d007b2db 100644
--- a/src/main/java/org/apache/commons/validator/routines/DomainValidator.java
+++ b/src/main/java/org/apache/commons/validator/routines/DomainValidator.java
@@ -143,7 +143,7 @@ public class DomainValidator implements Serializable {
      */
     public static synchronized DomainValidator getInstance(final boolean allowLocal) {
         inUse = true;
-        if(allowLocal) {
+        if (allowLocal) {
             return LazyHolder.DOMAIN_VALIDATOR_WITH_LOCAL;
         }
         return LazyHolder.DOMAIN_VALIDATOR;
@@ -318,7 +318,7 @@ public class DomainValidator implements Serializable {
      * @return true if the parameter is a TLD
      */
     public boolean isValidTld(final String tld) {
-        if(allowLocal && isValidLocalTld(tld)) {
+        if (allowLocal && isValidLocalTld(tld)) {
             return true;
         }
         return isValidInfrastructureTld(tld)