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 c5fc6d33 Comment: Remove unnecessary Latin acronym c5fc6d33 is described below commit c5fc6d33cd7420b805caedc986ad12b99485fb7d Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Mar 14 10:06:56 2025 -0400 Comment: Remove unnecessary Latin acronym --- RELEASE-NOTES.txt | 2 +- src/changes/changes.xml | 4 ++-- .../java/org/apache/commons/validator/routines/DomainValidator.java | 2 +- .../org/apache/commons/validator/resources/validator_1_2_0.dtd | 4 ++-- .../org/apache/commons/validator/resources/validator_1_3_0.dtd | 4 ++-- .../org/apache/commons/validator/resources/validator_1_4_0.dtd | 4 ++-- src/test/java/org/apache/commons/validator/ExceptionTest.java | 4 ++-- .../org/apache/commons/validator/routines/DomainValidatorTest.java | 2 +- .../java/org/apache/commons/validator/routines/IBANValidatorTest.java | 2 +- .../commons/validator/routines/checkdigit/IBANCheckDigitTest.java | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index b9611932..6dd5664a 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -151,7 +151,7 @@ IMPORTANT NOTES BREAKING CHANGES: * Now requires Java 7 -* N.B. Java 9 changed the way Locales are handled. This affects the output from some Date-related methods, and may cause some tests to break. +* Java 9 changed the way Locales are handled. This affects the output from some Date-related methods, and may cause some tests to break. DEPENDENCIES ------------ diff --git a/src/changes/changes.xml b/src/changes/changes.xml index cca1c758..b1fd2f64 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -251,7 +251,7 @@ Apache Commons Validator. * Now requires Java 7 - * N.B. Java 9 changed the way Locales are handled. This affects the output from some Date-related methods, and may cause some tests to break. + * Java 9 changed the way Locales are handled. This affects the output from some Date-related methods, and may cause some tests to break. DEPENDENCIES @@ -786,7 +786,7 @@ http://commons.apache.org/validator/dependencies.html <release version="1.3.1" date="2006-11-28" description="1.3 Maintenance Release."> <action dev="niallp" type="update"> Dependencies for Validator 1.3.1 are unchanged since the 1.3.0 release. - N.B. Jakarta ORO has now been marked as an optional dependency + Jakarta ORO has now been marked as an optional dependency in the project.xml as it is only required by the Email, URL and Regular Expression validations. </action> <action dev="niallp" type="fix" issue="VALIDATOR-208" due-to="Leo Asanov"> 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 04829536..9182293e 100644 --- a/src/main/java/org/apache/commons/validator/routines/DomainValidator.java +++ b/src/main/java/org/apache/commons/validator/routines/DomainValidator.java @@ -1790,7 +1790,7 @@ public class DomainValidator implements Serializable { // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search private static String[] genericTLDsMinus = EMPTY_STRING_ARRAY; - // N.B. The constructors are deliberately private to avoid possible problems with unsafe publication. + // The constructors are deliberately private to avoid possible problems with unsafe publication. // It is vital that the static override arrays are not mutable once they have been used in an instance // The arrays could be copied into the instance variables, however if the static array were changed it could // result in different settings for the shared default instances diff --git a/src/main/resources/org/apache/commons/validator/resources/validator_1_2_0.dtd b/src/main/resources/org/apache/commons/validator/resources/validator_1_2_0.dtd index 1f5379d1..9e58126c 100644 --- a/src/main/resources/org/apache/commons/validator/resources/validator_1_2_0.dtd +++ b/src/main/resources/org/apache/commons/validator/resources/validator_1_2_0.dtd @@ -198,7 +198,7 @@ position The position of this replacement parameter in the message. For example, position="0" will set the first argument. - N.B. Since 1.2.0 position is ignored for 'default' arguments + Since 1.2.0 position is ignored for 'default' arguments (i.e. those with no 'name' supplied) - it is calculated automatically from the order the arguments are added in. For 'overridden' arguments (i.e. those with a 'name') @@ -218,7 +218,7 @@ range validation. These parameters may also be referenced by one of the arg? elements using a shell syntax: ${var:var-name}. - N.B. resource ='true' indicates that the var-value is a resource key, + resource ='true' indicates that the var-value is a resource key, with the option to specify the bundle name. Validator doesn't do anything itself with these values. Down-stream systems need to resolve resource values. diff --git a/src/main/resources/org/apache/commons/validator/resources/validator_1_3_0.dtd b/src/main/resources/org/apache/commons/validator/resources/validator_1_3_0.dtd index 03369fd3..86ea758f 100644 --- a/src/main/resources/org/apache/commons/validator/resources/validator_1_3_0.dtd +++ b/src/main/resources/org/apache/commons/validator/resources/validator_1_3_0.dtd @@ -198,7 +198,7 @@ position The position of this replacement parameter in the message. For example, position="0" will set the first argument. - N.B. Since 1.2.0 position is ignored for 'default' arguments + Since 1.2.0 position is ignored for 'default' arguments (i.e. those with no 'name' supplied) - it is calculated automatically from the order the arguments are added in. For 'overridden' arguments (i.e. those with a 'name') @@ -218,7 +218,7 @@ range validation. These parameters may also be referenced by one of the arg? elements using a shell syntax: ${var:var-name}. - N.B. resource ='true' indicates that the var-value is a resource key, + resource ='true' indicates that the var-value is a resource key, with the option to specify the bundle name. Validator doesn't do anything itself with these values. Down-stream systems need to resolve resource values. diff --git a/src/main/resources/org/apache/commons/validator/resources/validator_1_4_0.dtd b/src/main/resources/org/apache/commons/validator/resources/validator_1_4_0.dtd index 1fc7afe4..d37072f4 100644 --- a/src/main/resources/org/apache/commons/validator/resources/validator_1_4_0.dtd +++ b/src/main/resources/org/apache/commons/validator/resources/validator_1_4_0.dtd @@ -202,7 +202,7 @@ position The position of this replacement parameter in the message. For example, position="0" will set the first argument. - N.B. Since 1.2.0 position is ignored for 'default' arguments + Since 1.2.0 position is ignored for 'default' arguments (i.e. those with no 'name' supplied) - it is calculated automatically from the order the arguments are added in. For 'overridden' arguments (i.e. those with a 'name') @@ -222,7 +222,7 @@ range validation. These parameters may also be referenced by one of the arg? elements using a shell syntax: ${var:var-name}. - N.B. resource ='true' indicates that the var-value is a resource key, + resource ='true' indicates that the var-value is a resource key, with the option to specify the bundle name. Validator doesn't do anything itself with these values. Down-stream systems need to resolve resource values. diff --git a/src/test/java/org/apache/commons/validator/ExceptionTest.java b/src/test/java/org/apache/commons/validator/ExceptionTest.java index 0532fc6c..0019333f 100644 --- a/src/test/java/org/apache/commons/validator/ExceptionTest.java +++ b/src/test/java/org/apache/commons/validator/ExceptionTest.java @@ -53,7 +53,7 @@ public class ExceptionTest extends AbstractCommonTest { /** * Tests handling of checked exceptions - should become ValidatorExceptions. * - * N.B. This test has been removed (renamed) as it currently serves no purpose. If/When exception handling is changed in Validator 2.0 it can be + * This test has been removed (renamed) as it currently serves no purpose. If/When exception handling is changed in Validator 2.0 it can be * reconsidered then. */ @Disabled @@ -88,7 +88,7 @@ public class ExceptionTest extends AbstractCommonTest { /** * Tests handling of runtime exceptions. * - * N.B. This test has been removed (renamed) as it currently serves no purpose. If/When exception handling is changed in Validator 2.0 it can be + * This test has been removed (renamed) as it currently serves no purpose. If/When exception handling is changed in Validator 2.0 it can be * reconsidered then. */ @Disabled diff --git a/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java b/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java index 3e3839ab..a85d511b 100644 --- a/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java +++ b/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java @@ -281,7 +281,7 @@ public class DomainValidatorTest { final File txtFile = new File("target/tlds-alpha-by-domain.txt"); final long timestamp = download(txtFile, "https://data.iana.org/TLD/tlds-alpha-by-domain.txt", 0L); final File htmlFile = new File("target/tlds-alpha-by-domain.html"); - // N.B. sometimes the html file may be updated a day or so after the txt file + // Sometimes the html file may be updated a day or so after the txt file // if the txt file contains entries not found in the html file, try again in a day or two download(htmlFile, "https://www.iana.org/domains/root/db", timestamp); diff --git a/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java b/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java index 168dd3db..dfff33c3 100644 --- a/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java +++ b/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java @@ -70,7 +70,7 @@ public class IBANValidatorTest { * The IBAN registry should be available from here: * https://www.swift.com/standards/data-standards/iban-international-bank-account-number * Care must be taken not to accidentally change the encoding, which for v99 appears to be Windows-1252 (cp1252) - * (N.B. even this encoding may not properly account for all characters) + * (even this encoding may not properly account for all characters) * Please ensure you download from the page (right-click), and do not edit the file after download, as that may * change the contents. * At present the code does not need the entries which are likely to contain non-ASCII characters, but a corrupt diff --git a/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java b/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java index 84e2984f..052cc9cd 100644 --- a/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java +++ b/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java @@ -181,7 +181,7 @@ public class IBANCheckDigitTest extends AbstractCheckDigitTest { // add some dummy calculated codes to test the limits // Current minimum length is Norway = 15 // Current maximum length is Malta = 31 - // N.B. These codes will fail online checkers which validate the IBAN format + // These codes will fail online checkers which validate the IBAN format // 234567890123456789012345678901 "AA0200000000053", "AA9700000000089", "AA9800000000071", "ZZ02ZZZZZZZZZZZZZZZZZZZZZZZZZ04", "ZZ97ZZZZZZZZZZZZZZZZZZZZZZZZZ40", "ZZ98ZZZZZZZZZZZZZZZZZZZZZZZZZ22", };