[hibernate-commits] [hibernate/hibernate-validator] 3dac4e: HV-1699 Change how numbers are compared in Max/Min...

Guillaume Smet noreply at github.com
Fri Mar 1 06:01:03 EST 2019


  Branch: refs/heads/6.0
  Home:   https://github.com/hibernate/hibernate-validator
  Commit: 3dac4e992a999a26d61e9fa0bba235d2f8457321
      https://github.com/hibernate/hibernate-validator/commit/3dac4e992a999a26d61e9fa0bba235d2f8457321
  Author: marko-bekhta <marko.prykladna at gmail.com>
  Date:   2019-03-01 (Fri, 01 Mar 2019)

  Changed paths:
    M engine/src/main/java/org/hibernate/validator/internal/constraintvalidators/bv/number/bound/MaxValidatorForNumber.java
    M engine/src/main/java/org/hibernate/validator/internal/constraintvalidators/bv/number/bound/MinValidatorForNumber.java
    M engine/src/main/java/org/hibernate/validator/internal/constraintvalidators/bv/number/bound/NumberComparatorHelper.java
    M engine/src/test/java/org/hibernate/validator/test/internal/constraintvalidators/bv/BaseMinMaxValidatorForNumberTest.java
    M engine/src/test/java/org/hibernate/validator/test/internal/constraintvalidators/bv/MaxValidatorForNumberTest.java

  Log Message:
  -----------
  HV-1699 Change how numbers are compared in Max/Min validators

- for Min/Max `Number` validators check if actual numbers are not with
floating point (float,double) and if they are direct them to correct
number comparator helper method
- for big numbers (BigDecimal, BigInteger) check in number comparator
helper before converting to long. If actual numbers are from a 'Big*'
classes direct the call to corresponding overloaded versions of the method
so that no data will be lost
- Compare floating point numbers using `Double#compare()`


  Commit: 35ee9c0d9ddc5a97cc23e967ebed73325a44748c
      https://github.com/hibernate/hibernate-validator/commit/35ee9c0d9ddc5a97cc23e967ebed73325a44748c
  Author: Guillaume Smet <guillaume.smet at gmail.com>
  Date:   2019-03-01 (Fri, 01 Mar 2019)

  Changed paths:
    M pom.xml

  Log Message:
  -----------
  HV-1693 Don't build the WildFly modules with JDK 12

The cdi jar is not available so we can't build the modules.


  Commit: 1b4943e4b19729feb55c24cabdf0ab3a498dd26f
      https://github.com/hibernate/hibernate-validator/commit/1b4943e4b19729feb55c24cabdf0ab3a498dd26f
  Author: Guillaume Smet <guillaume.smet at gmail.com>
  Date:   2019-03-01 (Fri, 01 Mar 2019)

  Changed paths:
    M tck-runner/pom.xml

  Log Message:
  -----------
  HV-1693 Fix the dependencies of the tck-runner module


  Commit: c4729db42905947fe2f6031c81b02b4a46aff59f
      https://github.com/hibernate/hibernate-validator/commit/c4729db42905947fe2f6031c81b02b4a46aff59f
  Author: Guillaume Smet <guillaume.smet at gmail.com>
  Date:   2019-03-01 (Fri, 01 Mar 2019)

  Changed paths:
    M pom.xml

  Log Message:
  -----------
  HV-1693 Don't build the documentation and distribution with JDK 12

We don't build the CDI extension with JDK 12 so we can't build the
documentation and distribution.


Compare: https://github.com/hibernate/hibernate-validator/compare/64b33ae1fbd4...c4729db42905


More information about the hibernate-commits mailing list