DATACMNS-1096 - Replaced references to Spring's Converter to JDK 8's Function in domain package.

Switched to use Optional<Object> to make nullability explicit. Keep the original ….convert(…) method around as deprecated default method so that clients can be migrated gradually.
This commit is contained in:
Oliver Gierke
2017-06-22 12:25:34 +02:00
parent a605e168fc
commit 6cd5f7c052
3 changed files with 37 additions and 9 deletions

View File

@@ -218,7 +218,7 @@ public class ExampleSpecificationAccessorUnitTests {
@Test // DATACMNS-810
public void getValueTransformerForPathReturnsConfigurtedTransformerForPath() {
PropertyValueTransformer transformer = source -> source.toString();
PropertyValueTransformer transformer = source -> source.map(Object::toString);
specification = ExampleMatcher.matching().//
withTransformer("firstname", transformer);