This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-validator.git
from 8eb7f63b Refactor internals for duplicate code
add 5c1672aa add CASNumberCheckDigit - CAS Chemical Abstracts Service RN
Registry No
add e5f56618 CASNumberCheckDigitTest with valid chemical substances
add d1133f8e add ECNumberCheckDigit - EC number for chemical substances
add 94860174 Tests for ECNumberCheckDigit
add 01313699 substances with CAS- and EC-Number
add 8e3ec799 Checkstyle : code cosmetics
add 8bcdf26b 2 more Checkstyle violations.
add 6505b07d (whitespace) FileTabCharacter
add 99c3bbaa have other 2 Checkstyle violations
add 1f6eec60 build (17) (whitespace) FileTabCharacter: File contains tab
characters
add e9755018 commented statement removed, Use since 1.9.0. ; local var in
calculate
add f3f3ba53 update comment; add getInstance() method; private ctor; ...
add 332932e5 code style; comment
add 2c0409e0 check style: empty line has trailing spaces
add 64d7c26c convenient method isEmpty(String) and some Checkstyle issues
add 47301924 checkstyle
add fd6287c4 use GenericValidator.isBlankOrNull method ; delete isEmpty
add deb39a25 MIN MAX tests
new 12584c89 Merge pull request #217 from homebeaver/master
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../routines/checkdigit/CASNumberCheckDigit.java | 142 +++++++++++++++++++++
.../routines/checkdigit/ECNumberCheckDigit.java | 125 ++++++++++++++++++
.../checkdigit/AbstractCheckDigitTest.java | 8 +-
.../checkdigit/CASNumberCheckDigitTest.java | 58 +++++++++
...kDigitTest.java => ECNumberCheckDigitTest.java} | 28 ++--
5 files changed, 350 insertions(+), 11 deletions(-)
create mode 100644
src/main/java/org/apache/commons/validator/routines/checkdigit/CASNumberCheckDigit.java
create mode 100644
src/main/java/org/apache/commons/validator/routines/checkdigit/ECNumberCheckDigit.java
create mode 100644
src/test/java/org/apache/commons/validator/routines/checkdigit/CASNumberCheckDigitTest.java
copy
src/test/java/org/apache/commons/validator/routines/checkdigit/{VerhoeffCheckDigitTest.java
=> ECNumberCheckDigitTest.java} (52%)