Branch: refs/heads/master
Home:
https://github.com/hibernate/hibernate-validator
Commit: 4a4e02daeca4bd7d89ab364f1faf5da697fb40c7
https://github.com/hibernate/hibernate-validator/commit/4a4e02daeca4bd7d8...
Author: Gunnar Morling <gunnar.morling(a)googlemail.com>
Date: 2016-08-31 (Wed, 31 Aug 2016)
Changed paths:
M engine/src/main/java/org/hibernate/validator/internal/engine/ValidatorImpl.java
M
engine/src/main/java/org/hibernate/validator/internal/metadata/aggregated/ParameterMetaData.java
M
engine/src/main/java/org/hibernate/validator/internal/metadata/aggregated/PropertyMetaData.java
M
engine/src/main/java/org/hibernate/validator/internal/metadata/aggregated/ReturnValueMetaData.java
M
engine/src/main/java/org/hibernate/validator/internal/metadata/facets/Cascadable.java
Log Message:
-----------
HV-1080 Simplifying retrieval of cascaded values;
* No instanceof check needed anymore
* No repeated setAccessible() calls
* No need to expose getCascadedMember() on PropertyMetadata
Commit: 3a9dbc073ecd71db339917e76b36218a2f186589
https://github.com/hibernate/hibernate-validator/commit/3a9dbc073ecd71db3...
Author: Gunnar Morling <gunnar.morling(a)googlemail.com>
Date: 2016-08-31 (Wed, 31 Aug 2016)
Changed paths:
M engine/src/main/java/org/hibernate/validator/internal/engine/ValidatorImpl.java
M
engine/src/main/java/org/hibernate/validator/internal/metadata/aggregated/ParameterMetaData.java
M
engine/src/main/java/org/hibernate/validator/internal/metadata/aggregated/PropertyMetaData.java
M
engine/src/main/java/org/hibernate/validator/internal/metadata/aggregated/ReturnValueMetaData.java
M
engine/src/main/java/org/hibernate/validator/internal/metadata/facets/Cascadable.java
A
engine/src/test/java/org/hibernate/validator/test/internal/engine/valuehandling/CascadedOptionalTest.java
Log Message:
-----------
HV-1080 Making sure that the correct type is used for unwrapper resolution;
When determining the unwrapper for a cascadable property, it wasn't determined
which type (the one from the field or the getter) would be used. Mostly that
doesn't matter, but it makes a difference if the field is a "normal" type
and
the getter is an Optional<T> of this type. Now always the type of the cascadable
member (marked with @Valid) is used.
Compare:
https://github.com/hibernate/hibernate-validator/compare/13e8edb1c8f4...3...