Author: sebb
Date: Thu Jan 7 22:32:50 2016
New Revision: 1723638
URL: http://svn.apache.org/viewvc?rev=1723638&view=rev
Log:
Fix indentation
Modified:
commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/DomainValidator.java
Modified:
commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/DomainValidator.java
URL:
http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/DomainValidator.java?rev=1723638&r1=1723637&r2=1723638&view=diff
==============================================================================
---
commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/DomainValidator.java
(original)
+++
commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/DomainValidator.java
Thu Jan 7 22:32:50 2016
@@ -131,15 +131,15 @@ public class DomainValidator implements
*/
public static synchronized DomainValidator getInstance(boolean allowLocal)
{
inUse = true;
- if(allowLocal) {
- return DOMAIN_VALIDATOR_WITH_LOCAL;
- }
- return DOMAIN_VALIDATOR;
+ if(allowLocal) {
+ return DOMAIN_VALIDATOR_WITH_LOCAL;
+ }
+ return DOMAIN_VALIDATOR;
}
/** Private constructor. */
private DomainValidator(boolean allowLocal) {
- this.allowLocal = allowLocal;
+ this.allowLocal = allowLocal;
}
/**
@@ -197,7 +197,7 @@ public class DomainValidator implements
public boolean isValidTld(String tld) {
tld = unicodeToASCII(tld);
if(allowLocal && isValidLocalTld(tld)) {
- return true;
+ return true;
}
return isValidInfrastructureTld(tld)
|| isValidGenericTld(tld)
@@ -1661,11 +1661,11 @@ public class DomainValidator implements
if (length == 0) {// check there is a last character
return input;
}
-// RFC3490 3.1. 1)
-// Whenever dots are used as label separators, the following
-// characters MUST be recognized as dots: U+002E (full stop), U+3002
-// (ideographic full stop), U+FF0E (fullwidth full stop), U+FF61
-// (halfwidth ideographic full stop).
+ // RFC3490 3.1. 1)
+ // Whenever dots are used as label separators, the
following
+ // characters MUST be recognized as dots: U+002E (full
stop), U+3002
+ // (ideographic full stop), U+FF0E (fullwidth full
stop), U+FF61
+ // (halfwidth ideographic full stop).
char lastChar = input.charAt(length-1);// fetch original last char
switch(lastChar) {
case '\u002E': // "." full stop