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

Marko Bekhta noreply at github.com
Tue Apr 9 07:20:23 EDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/hibernate/hibernate-validator
  Commit: b173247ab36545b90f2bf64a3838f39f4aab2eb1
      https://github.com/hibernate/hibernate-validator/commit/b173247ab36545b90f2bf64a3838f39f4aab2eb1
  Author: marko-bekhta <marko.prykladna at gmail.com>
  Date:   2019-04-03 (Wed, 03 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