[hibernate-commits] [hibernate/hibernate-validator] 90124a: HV-1706 Update the check algorithms for ISBN10/ISBN13

Marko Bekhta noreply at github.com
Tue Apr 9 07:46:38 EDT 2019


  Branch: refs/heads/6.0
  Home:   https://github.com/hibernate/hibernate-validator
  Commit: 90124ab0ab03647c7ef18085010ecf7ea7d47f94
      https://github.com/hibernate/hibernate-validator/commit/90124ab0ab03647c7ef18085010ecf7ea7d47f94
  Author: marko-bekhta <marko.prykladna at gmail.com>
  Date:   2019-04-09 (Tue, 09 Apr 2019)

  Changed paths:
    M engine/src/main/java/org/hibernate/validator/internal/constraintvalidators/hv/ISBNValidator.java
    M engine/src/test/java/org/hibernate/validator/test/internal/constraintvalidators/hv/ISBNValidatorTest.java

  Log Message:
  -----------
  HV-1706 Update the check algorithms for ISBN10/ISBN13

- To be able to correctly handle the 0 checksum cases instead
of determining a check digit a whole sum is calculated and then
its modulo is compared to 0.




More information about the hibernate-commits mailing list