Skip to content

Commit

Permalink
Remove extra blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Nov 26, 2023
1 parent b16ee74 commit da119b2
Show file tree
Hide file tree
Showing 46 changed files with 0 additions and 63 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ public Form getForm(final String language, final String country, final String va
}
final String localeKey = key;


// Try language/country
if (form == null) {
key = buildLocale(language, country, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ public CreditCardRange(final String low, final String high, final int [] lengths
@Deprecated
public static final long MASTERCARD_PRE_OCT2016 = 1 << 6; // CHECKSTYLE IGNORE MagicNumber


/**
* The CreditCardTypes that are allowed to pass validation.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public class EmailValidator implements Serializable {
*/
private static final EmailValidator EMAIL_VALIDATOR_WITH_LOCAL = new EmailValidator(true, false);


/**
* Singleton instance of this class, which does
* consider local addresses valid.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ public class ISBNValidator implements Serializable {
/** ISBN Code Validator (which converts ISBN-10 codes to ISBN-13 */
private static final ISBNValidator ISBN_VALIDATOR_NO_CONVERT = new ISBNValidator(false);


/** ISBN-10 Code Validator */
private final CodeValidator isbn10Validator = new CodeValidator(ISBN10_REGEX, 10, ISBN10CheckDigit.ISBN10_CHECK_DIGIT);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ public String[] match(final String value) {
return null;
}


/**
* Validates a value against the set of regular expressions
* returning a String value of the aggregated groups.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
*/
public final class ISSNCheckDigit extends ModulusCheckDigit {


private static final long serialVersionUID = 1L;

/** Singleton ISSN Check Digit instance */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ protected int calculateModulus(final String code, final boolean includesCheckDig
protected abstract int weightedValue(int charValue, int leftPos, int rightPos)
throws CheckDigitException;


/**
* Convert a character at a specified position to an integer value.
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public final class VerhoeffCheckDigit implements CheckDigit, Serializable {
/** inv: inverse table */
private static final int[] INV_TABLE = {0, 4, 3, 2, 1, 5, 6, 7, 8, 9};


/**
* Validate the Verhoeff <i>Check Digit</i> for a code.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ abstract public class AbstractNumberTest extends AbstractCommonTest {
*/
protected String ACTION;


public AbstractNumberTest(final String name) {
super(name);
}
Expand Down Expand Up @@ -104,5 +103,4 @@ protected void valueTest(final Object info, final boolean passed) throws Validat
assertTrue(ACTION + " value ValidatorResult for the '" + ACTION + "' action should have " + (passed ? "passed" : "failed") + ".", passed ? result.isValid(ACTION) : !result.isValid(ACTION));
}


}
2 changes: 0 additions & 2 deletions src/test/java/org/apache/commons/validator/ByteTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
*/
package org.apache.commons.validator;



/**
* Performs Validation Test for <code>byte</code> validations.
*/
Expand Down
3 changes: 0 additions & 3 deletions src/test/java/org/apache/commons/validator/DateTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public class DateTest extends AbstractCommonTest {
*/
protected String ACTION = "date";


public DateTest(final String name) {
super(name);
}
Expand Down Expand Up @@ -72,7 +71,6 @@ public void testInvalidDate() throws ValidatorException {
valueTest(info, false);
}


/**
* Utlity class to run a test on a value.
*
Expand Down Expand Up @@ -104,5 +102,4 @@ protected void valueTest(final Object info, final boolean passed) throws Validat
assertTrue(ACTION + " value ValidatorResult for the '" + ACTION + "' action should have " + (passed ? "passed" : "failed") + ".", passed ? result.isValid(ACTION) : !result.isValid(ACTION));
}


}
2 changes: 0 additions & 2 deletions src/test/java/org/apache/commons/validator/DoubleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.commons.validator;


/**
* Performs Validation Test for <code>double</code> validations.
*/
Expand All @@ -28,7 +27,6 @@ public DoubleTest(final String name) {
FORM_KEY = "doubleForm";
}


/**
* Tests the double validation.
*/
Expand Down
2 changes: 0 additions & 2 deletions src/test/java/org/apache/commons/validator/EmailTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public class EmailTest extends AbstractCommonTest {
*/
protected static String ACTION = "email";


public EmailTest(final String name) {
super(name);
}
Expand Down Expand Up @@ -126,7 +125,6 @@ public void testEmailWithDash() throws ValidatorException {
info.setValue("[email protected]");
valueTest(info, false);


}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.net.URL;
import java.util.Locale;


/**
* Tests entity imports.
*/
Expand Down
2 changes: 0 additions & 2 deletions src/test/java/org/apache/commons/validator/ExtensionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ public void testRequiredName() throws ValidatorException {
assertTrue("Last Name ValidatorResult for the '" + ACTION +"' action should have passed.", lastNameResult.isValid(ACTION));
}


/**
* Tests if we can override a rule. We "can" override a rule if the message shown
* when the firstName required test fails and the lastName test is null.
Expand Down Expand Up @@ -308,7 +307,6 @@ public void testOverrideRule() throws ValidatorException {
assertNull("Last Name ValidatorResult should be null.", lastNameResult);
}


/**
* Tests if the order is mantained when extending a form. Parent form fields should
* preceed self form fields, except if we override the rules.
Expand Down
1 change: 0 additions & 1 deletion src/test/java/org/apache/commons/validator/FieldTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/
public class FieldTest extends TestCase {


protected Field field;

/**
Expand Down
1 change: 0 additions & 1 deletion src/test/java/org/apache/commons/validator/FloatTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.commons.validator;


/**
* Performs Validation Test for <code>float</code> validations.
*/
Expand Down
4 changes: 0 additions & 4 deletions src/test/java/org/apache/commons/validator/IntegerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,11 @@
*/
package org.apache.commons.validator;




/**
* Performs Validation Test for <code>int</code> validations.
*/
public class IntegerTest extends AbstractNumberTest {


public IntegerTest(final String name) {
super(name);
FORM_KEY = "intForm";
Expand Down
1 change: 0 additions & 1 deletion src/test/java/org/apache/commons/validator/LongTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.commons.validator;


/**
* Performs Validation Test for <code>long</code> validations.
*/
Expand Down
2 changes: 0 additions & 2 deletions src/test/java/org/apache/commons/validator/MultipleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ public class MultipleTest extends AbstractCommonTest {
*/
protected static String ACTION = "required";



public MultipleTest(final String name) {
super(name);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import org.xml.sax.SAXException;


/**
* Performs Validation Test.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ public void testFormNotFound() {
// *** Candian French Variant locale ***
checkFormNotFound(CANADA_FRENCH_XXX, formKey);


}

private void checkForm(final Locale locale, final String formKey, final String expectedVarValue) {
Expand Down
1 change: 0 additions & 1 deletion src/test/java/org/apache/commons/validator/ShortTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.commons.validator;


/**
* Performs Validation Test for <code>short</code> validations.
*/
Expand Down
2 changes: 0 additions & 2 deletions src/test/java/org/apache/commons/validator/UrlTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ static boolean incrementTestPartsIndex(final int[] testPartsIndex, final Object[
maxIndex &= index == part.length - 1;
}


return !maxIndex;
}

Expand Down Expand Up @@ -276,5 +275,4 @@ public static void main(final String[] argv) {
new ResultPair("httpd", false),
new ResultPair("telnet", false)};


}
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ public void testOnlyValidateField() throws ValidatorException {
assertTrue(results.getPropertyNames().contains(property));
}


private ValidatorResources setupDateResources(final String property, final String action) {

final ValidatorResources resources = new ValidatorResources();
Expand Down
2 changes: 0 additions & 2 deletions src/test/java/org/apache/commons/validator/VarTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ public class VarTest extends AbstractCommonTest {
*/
protected static String ACTION = "byte";



public VarTest(final String name) {
super(name);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ public void testIntegerInvalid() {
assertFalse("US negative", validator.isValid("(" + US_DOLLAR + "1,234.56)", Locale.US));
}


/**
* Test currency values with a pattern
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@ public void testEmailUserName() {

assertTrue(validator.isValid("[email protected]")); // = ditto


//UnQuoted Special characters are invalid

assertFalse(validator.isValid("[email protected]")); // . not allowed at end of local part
Expand All @@ -359,7 +358,6 @@ public void testEmailUserName() {

assertFalse(validator.isValid("joe;@apache.org"));


//Quoted Special characters are valid
assertTrue(validator.isValid("\"joe.\"@apache.org"));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -647,4 +647,3 @@ public void testIPv6() {
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ protected void setUp() {
min = null;
minMinusOne = null;


// testInvalidStrict()
invalidStrict = new String[] {null, "", "X", "X12", "12X", "1X2", "1.2", LONG_MAX_1, LONG_MIN_1, NINES};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,6 @@ static boolean incrementTestPartsIndex(final int[] testPartsIndex, final Object[
}
}


return !maxIndex;
}

Expand Down Expand Up @@ -526,7 +525,6 @@ public void testValidator375() {
assertFalse("IPv6 address without [] should not validate: " + url, validator.isValid(url));
}


@Test
public void testValidator353() { // userinfo
final UrlValidator validator = new UrlValidator();
Expand Down Expand Up @@ -689,7 +687,6 @@ public void testFragments() {
new ResultPair("HtTp", true),
new ResultPair("telnet", false)};


/**
* Validator for checking URL parsing
* @param args - URLs to validate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.commons.validator.routines.checkdigit;


/**
* ABA Number Check Digit Test.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.commons.validator.routines.checkdigit;


/**
* CUSIP Check Digit Test.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.commons.validator.routines.checkdigit;


/**
* EAN-13 Check Digit Test.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

import org.junit.Assert;


/**
* IBAN Check Digit Test.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.commons.validator.routines.checkdigit;


/**
* ISBN-10 Check Digit Test.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.commons.validator.routines.checkdigit;


/**
* ISBN-10/ISBN-13 Check Digit Test.
*
Expand Down Expand Up @@ -88,5 +87,4 @@ public void testInvalidLength() {
}
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.commons.validator.routines.checkdigit;


/**
* ISIN Check Digit Test.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.commons.validator.routines.checkdigit;


/**
* ISSN Check Digit Test.
*
Expand Down
Loading

0 comments on commit da119b2

Please sign in to comment.